File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,22 +34,22 @@ export function SuiteDecorator<T extends BellatrixTest>(target: ParameterlessCto
34
34
const title = target . name ; // or passed as @Suite ('title') or similar
35
35
36
36
nativeLibrary . describe ( title , ( ) => {
37
- nativeLibrary . beforeAll ( async ( ) => await testClassSymbolMethods . beforeAll . call ( testClassInstance ) ) ;
37
+ nativeLibrary . beforeAll ( async ( ) => await testClassSymbolMethods . beforeAll . call ( testClassInstance ) , 0 ) ;
38
38
39
39
nativeLibrary . beforeEach ( async ( ) => {
40
40
const regex = new RegExp ( `.*\\b.* > ${ title } > \\b(.*)` ) ;
41
41
const match = regex . exec ( nativeLibrary . expect . getState ( ) . currentTestName ?? '' ) ;
42
42
const currentTestName = ( match ?. length ?? 0 ) > 1 ? match ! [ 1 ] : '' ;
43
43
setCurrentTest ( currentTestName , testClassInstance [ currentTestName as keyof T ] as ( ...args : unknown [ ] ) => ( Promise < void > | void ) , testClass . constructor ) ;
44
44
await testClassSymbolMethods . beforeEach . call ( testClassInstance ) ;
45
- } ) ;
45
+ } , 0 ) ;
46
46
47
47
nativeLibrary . afterEach ( async ( ) => {
48
48
await testClassSymbolMethods . afterEach . call ( testClassInstance ) ;
49
49
unsetCurrentTest ( testClass . constructor ) ;
50
- } ) ;
50
+ } , 0 ) ;
51
51
52
- nativeLibrary . afterAll ( async ( ) => await testClassSymbolMethods . afterAll . call ( testClassInstance ) ) ;
52
+ nativeLibrary . afterAll ( async ( ) => await testClassSymbolMethods . afterAll . call ( testClassInstance ) , 0 ) ;
53
53
54
54
for ( const testMethod of testMethods ) {
55
55
nativeLibrary . test ( testMethod , async ( ) => {
You can’t perform that action at this time.
0 commit comments