You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
awaitwriteFile(tmpjs,'hello fastify',{flag: 'a+'})// chokidar watch can't catch change event in CI, but local test is all ok. you can remove annotation in local environment.
591
-
t.assert.ok('change tmpjs')
592
-
593
-
// this might happen more than once but does not matter in this context
594
-
awaitrestartPromise
595
-
t.assert.ok('should receive restart event')
596
-
})
597
-
598
-
test('should start the server with watch and verbose-watch options that the child process restart when directory changed with console message about changes ',{skip: true},async(t)=>{
awaitwriteFile(tmpjs,'hello fastify',{flag: 'a+'})// chokidar watch can't catch change event in CI, but local test is all ok. you can remove annotation in local environment.
632
-
t.assert.ok('change tmpjs')
633
-
634
-
// this might happen more than once but does not matter in this context
635
-
awaitrestartPromise
636
-
t.assert.ok('should receive restart event')
637
-
t.assert.ok(spy.args.length>0,'should print a console message on file update')
638
-
})
569
+
// Temporarily commented out during migration from TAP to node:test
570
+
// test('should start the server with watch options that the child process restart when directory changed', { skip: ['win32', 'darwin'].includes(process.platform) || process.env.CI === 'true' }, async (t) => {
// await writeFile(tmpjs, 'hello fastify', { flag: 'a+' }) // chokidar watch can't catch change event in CI, but local test is all ok. you can remove annotation in local environment.
592
+
// t.assert.ok('change tmpjs')
593
+
594
+
// // this might happen more than once but does not matter in this context
595
+
// await restartPromise
596
+
// t.assert.ok('should receive restart event')
597
+
// })
598
+
599
+
// test('should start the server with watch and verbose-watch options that the child process restart when directory changed with console message about changes ', { skip: ['win32', 'darwin'].includes(process.platform) || process.env.CI === 'true' }, async (t) => {
// await writeFile(tmpjs, 'hello fastify', { flag: 'a+' }) // chokidar watch can't catch change event in CI, but local test is all ok. you can remove annotation in local environment.
633
+
// t.assert.ok('change tmpjs')
634
+
635
+
// // this might happen more than once but does not matter in this context
636
+
// await restartPromise
637
+
// t.assert.ok('should receive restart event')
638
+
// t.assert.ok(spy.args.length > 0, 'should print a console message on file update')
639
+
// })
639
640
640
641
test('should reload the env on restart when watching',{skip: process.platform==='win32'},async(t)=>{
0 commit comments