@@ -5,12 +5,12 @@ import { IsolateTypes } from 'IsolateTypes';
5
5
describe ( 'isolate' , ( ) => {
6
6
let firstRun = true ;
7
7
let vest , isolate , skipWhen , dummyTest ;
8
- let throwErrorDeferred ;
8
+ let deferThrow ;
9
9
10
10
beforeEach ( ( ) => {
11
11
firstRun = true ;
12
12
const mock = mockThrowError ( ) ;
13
- throwErrorDeferred = mock . throwErrorDeferred ;
13
+ deferThrow = mock . deferThrow ;
14
14
vest = mock . vest ;
15
15
skipWhen = vest . skipWhen ;
16
16
isolate = require ( 'isolate' ) . isolate ;
@@ -240,10 +240,10 @@ describe('isolate', () => {
240
240
} ) ;
241
241
242
242
suite ( ) ;
243
- expect ( throwErrorDeferred ) . toHaveBeenCalledTimes ( 0 ) ;
243
+ expect ( deferThrow ) . toHaveBeenCalledTimes ( 0 ) ;
244
244
suite ( ) ;
245
- expect ( throwErrorDeferred ) . toHaveBeenCalledTimes ( 1 ) ;
246
- expect ( throwErrorDeferred ) . toHaveBeenCalledWith (
245
+ expect ( deferThrow ) . toHaveBeenCalledTimes ( 1 ) ;
246
+ expect ( deferThrow ) . toHaveBeenCalledWith (
247
247
expect . stringContaining (
248
248
'Vest Critical Error: Tests called in different order than previous run'
249
249
)
@@ -258,9 +258,9 @@ describe('isolate', () => {
258
258
} ) ;
259
259
260
260
suite ( ) ;
261
- expect ( throwErrorDeferred ) . toHaveBeenCalledTimes ( 0 ) ;
261
+ expect ( deferThrow ) . toHaveBeenCalledTimes ( 0 ) ;
262
262
suite ( ) ;
263
- expect ( throwErrorDeferred ) . toHaveBeenCalledTimes ( 0 ) ;
263
+ expect ( deferThrow ) . toHaveBeenCalledTimes ( 0 ) ;
264
264
} ) ;
265
265
} ) ;
266
266
} ) ;
0 commit comments