File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -314,6 +314,7 @@ export class Workers extends EventEmitter {
314
314
mocha . suite . eachTest ( ( test ) => {
315
315
const i = groupCounter % groups . length ;
316
316
if ( test ) {
317
+ // @ts -ignore
317
318
groups [ i ] . push ( test . uid ) ;
318
319
groupCounter ++ ;
319
320
}
@@ -335,6 +336,7 @@ export class Workers extends EventEmitter {
335
336
const i = indexOfSmallestElement ( groups ) ;
336
337
suite . tests . forEach ( ( test ) => {
337
338
if ( test ) {
339
+ // @ts -ignore
338
340
groups [ i ] . push ( test . uid ) ;
339
341
}
340
342
} ) ;
Original file line number Diff line number Diff line change 1
1
import { expect } from 'chai' ;
2
2
import * as sinon from 'sinon' ;
3
- import * as Scenario from '../../lib/Scenario .js' ;
3
+ import * as Scenario from '../../lib/scenario .js' ;
4
4
import recorder from '../../lib/recorder.js' ;
5
5
import * as event from '../../lib/event.js' ;
6
6
Original file line number Diff line number Diff line change 1
1
import { expect } from 'chai' ;
2
- import path from 'path' ;
2
+ import path , { dirname } from 'path' ;
3
+ import { fileURLToPath } from 'url' ;
3
4
import { Workers } from '../../lib/workers.js' ;
4
5
import * as event from '../../lib/event.js' ;
5
6
import recorder from '../../lib/recorder.js' ;
6
7
7
- const __dirname = path . resolve ( '.' ) ;
8
+ const __dirname = dirname ( fileURLToPath ( import . meta . url ) ) ;
8
9
describe ( 'Workers' , function ( ) {
9
10
this . timeout ( 40000 ) ;
10
11
before ( ( ) => {
You can’t perform that action at this time.
0 commit comments