File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
test/fixtures/test-runner/output Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 33const { describe, test } = require ( 'node:test' ) ;
44const { setTimeout } = require ( 'node:timers/promises' ) ;
55
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 ( ) => {
88 await setTimeout ( 200000 , undefined , { ref : false } ) ;
99 } ) ;
10- test ( 'should timeout after 5ms' , { timeout : 5 } , async ( ) => {
10+ await test ( 'should timeout after 5ms' , { timeout : 5 } , async ( ) => {
1111 await setTimeout ( 200000 , undefined , { ref : false } ) ;
1212 } ) ;
1313
14- test ( 'should not timeout' , { timeout : 50000 } , async ( ) => {
14+ await test ( 'should not timeout' , { timeout : 50000 } , async ( ) => {
1515 await setTimeout ( 1 ) ;
1616 } ) ;
1717
18- test ( 'should pass' , async ( ) => { } ) ;
18+ await test ( 'should pass' , async ( ) => { } ) ;
1919} ) ;
You can’t perform that action at this time.
0 commit comments