File tree 2 files changed +5
-0
lines changed
packages/jest-environment-node/src
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 12
12
- ` [jest-core] ` make ` TestWatcher ` extend ` emittery ` ([ #10324 ] ( https://github.com/facebook/jest/pull/10324 ) )
13
13
- ` [jest-core] ` Run failed tests interactively the same way we do with snapshots ([ #10858 ] ( https://github.com/facebook/jest/pull/10858 ) )
14
14
- ` [jest-core] ` more ` TestSequencer ` methods can be async ([ #10980 ] ( https://github.com/facebook/jest/pull/10980 ) )
15
+ - ` [jest-environment-node] ` Add AbortController to globals ([ #11182 ] ( https://github.com/facebook/jest/pull/11182 ) )
15
16
- ` [jest-haste-map] ` Handle injected scm clocks ([ #10966 ] ( https://github.com/facebook/jest/pull/10966 ) )
16
17
- ` [jest-repl, jest-runner] ` [ ** BREAKING** ] Run transforms over environment ([ #8751 ] ( https://github.com/facebook/jest/pull/8751 ) )
17
18
- ` [jest-runner] ` [ ** BREAKING** ] set exit code to 1 if test logs after teardown ([ #10728 ] ( https://github.com/facebook/jest/pull/10728 ) )
Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ class NodeEnvironment implements JestEnvironment {
59
59
if ( typeof queueMicrotask !== 'undefined' ) {
60
60
global . queueMicrotask = queueMicrotask ;
61
61
}
62
+ // AbortController is global in Node >= 15
63
+ if ( typeof AbortController !== 'undefined' ) {
64
+ global . AbortController = AbortController ;
65
+ }
62
66
installCommonGlobals ( global , config . globals ) ;
63
67
this . moduleMocker = new ModuleMocker ( global ) ;
64
68
You can’t perform that action at this time.
0 commit comments