File tree Expand file tree Collapse file tree 5 files changed +2
-49
lines changed
jest-circus/src/legacy-code-todo-rewrite Expand file tree Collapse file tree 5 files changed +2
-49
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -72,18 +72,15 @@ const jestAdapter = async (
72
72
} ) ;
73
73
74
74
for ( const path of config . setupFilesAfterEnv ) {
75
- // TODO: remove ? in Jest 26
76
- const esm = runtime . unstable_shouldLoadAsEsm ?.( path ) ;
75
+ const esm = runtime . unstable_shouldLoadAsEsm ( path ) ;
77
76
78
77
if ( esm ) {
79
78
await runtime . unstable_importModule ( path ) ;
80
79
} else {
81
80
runtime . requireModule ( path ) ;
82
81
}
83
82
}
84
-
85
- // TODO: remove ? in Jest 26
86
- const esm = runtime . unstable_shouldLoadAsEsm ?.( testPath ) ;
83
+ const esm = runtime . unstable_shouldLoadAsEsm ( testPath ) ;
87
84
88
85
if ( esm ) {
89
86
await runtime . unstable_importModule ( testPath ) ;
Original file line number Diff line number Diff line change @@ -20,12 +20,6 @@ const deprecatedOptions: DeprecatedOptions = {
20
20
}
21
21
` ,
22
22
23
- mapCoverage : ( ) => ` Option ${ chalk . bold (
24
- '"mapCoverage"' ,
25
- ) } has been removed, as it's no longer necessary.
26
-
27
- Please update your configuration.` ,
28
-
29
23
preprocessorIgnorePatterns : ( options : {
30
24
preprocessorIgnorePatterns ?: Array < string > ;
31
25
} ) => ` Option ${ chalk . bold (
You can’t perform that action at this time.
0 commit comments