File tree 1 file changed +5
-5
lines changed
test/fixtures/test-runner/output
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
const { describe, test } = require ( 'node:test' ) ;
4
4
const { setTimeout } = require ( 'node:timers/promises' ) ;
5
5
6
- describe ( '--test-timeout is set to 20ms' , ( ) => {
7
- test ( 'should timeout after 20ms' , async ( ) => {
6
+ describe ( '--test-timeout is set to 20ms' , async ( ) => {
7
+ await test ( 'should timeout after 20ms' , async ( ) => {
8
8
await setTimeout ( 200000 , undefined , { ref : false } ) ;
9
9
} ) ;
10
- test ( 'should timeout after 5ms' , { timeout : 5 } , async ( ) => {
10
+ await test ( 'should timeout after 5ms' , { timeout : 5 } , async ( ) => {
11
11
await setTimeout ( 200000 , undefined , { ref : false } ) ;
12
12
} ) ;
13
13
14
- test ( 'should not timeout' , { timeout : 50000 } , async ( ) => {
14
+ await test ( 'should not timeout' , { timeout : 50000 } , async ( ) => {
15
15
await setTimeout ( 1 ) ;
16
16
} ) ;
17
17
18
- test ( 'should pass' , async ( ) => { } ) ;
18
+ await test ( 'should pass' , async ( ) => { } ) ;
19
19
} ) ;
You can’t perform that action at this time.
0 commit comments