Skip to content

Demonstrates issue with mocha@8 that crashes watch mode when imports fail

Notifications You must be signed in to change notification settings

marcelbeumer/mocha-8-watcher-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mocha-8-watcher-issue

Demonstrates issue with mocha@8 that crashes watch mode when imports fail (mochajs/mocha#4580). This is a minimal mocha setup, see typescript branch for the same issue with a ts-node setup.

To reproduce:

  • npm i
  • npm run test -- --watch
  • watcher should run and test passes
  • uncomment the RUNTIME ERROR part in test/example.test.js
  • the watcher should show the error but not crash
  • uncomment either the REQUIRE ERROR or EXPLICIT THROW part in test/example.test.js
  • the watcher crashes
  • install mocha 7 with npm i mocha@7
  • npm run test -- --watch
  • the watcher shows an error but does not crash

About

Demonstrates issue with mocha@8 that crashes watch mode when imports fail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published