File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,6 @@ async function runTestInternal(
82
82
resolver : Resolver ,
83
83
context ?: TestRunnerContext ,
84
84
) : Promise < RunTestInternalResult > {
85
- // Node's error-message stack size is limited at 10, but it's pretty useful
86
- // to see more than that when a test fails.
87
- Error . stackTraceLimit = 100 ;
88
85
const testSource = fs . readFileSync ( path , 'utf8' ) ;
89
86
const docblockPragmas = docblock . parse ( docblock . extract ( testSource ) ) ;
90
87
const customEnvironment = docblockPragmas [ 'jest-environment' ] ;
@@ -221,6 +218,9 @@ async function runTestInternal(
221
218
} ;
222
219
}
223
220
221
+ // Node's error-message stack size is limited at 10, but it's pretty useful
222
+ // to see more than that when a test fails.
223
+ Error . stackTraceLimit = 100 ;
224
224
try {
225
225
await environment . setup ( ) ;
226
226
You can’t perform that action at this time.
0 commit comments