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
* Fix broken tests
I switched to a deep equal because it provides better test output vs the boolean comparison. Let me know if you want to keep it the same as before.
* Use the correct initVersion
Use the configured default init-version config from npm, instead of assuming the default. This validates the current behavior.
* Remove unreachable code
# Conflicts:
# lib/watch/index.js
* Increase timeout on slow test
I think this will make the test pass more reliably
* Revert "skip broken tests" and re-enable other disabled tests
This reverts commit c4cde16 with modifications.
Make watch tests pass again
Looking into why these events are missed.
Enable a passing test for CI
* Disable another test on windows
* Fix depreciation warning
* Increase test timeout
Windows is having spurious timeouts.
Co-authored-by: Andy Pickler <[email protected]>
@@ -549,9 +552,6 @@ test('should start the server with watch options that the child process restart
549
552
awaitfastifyEmitter.stop()
550
553
})
551
554
552
-
awaitonce(fastifyEmitter,'start')
553
-
t.pass('should receive start event')
554
-
555
555
awaitonce(fastifyEmitter,'ready')
556
556
t.pass('should receive ready event')
557
557
@@ -563,9 +563,8 @@ test('should start the server with watch options that the child process restart
563
563
t.pass('should receive restart event')
564
564
})
565
565
566
-
// TODO remove skip
567
-
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)=>{
568
-
t.plan(5)
566
+
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: process.platform==='win32'},async(t)=>{
567
+
t.plan(4)
569
568
570
569
constspy=sinon.spy()
571
570
constwatch=proxyquire('../lib/watch',{
@@ -580,8 +579,10 @@ test('should start the server with watch and verbose-watch options that the chil
0 commit comments