Mocha watch doesnt trigger on new files

537 Views Asked by At

When i run mocha on watch

mocha --watch app/**/*.spec.js

Everything is working fine. Unless when I create new spec file mocha doesnt detect that.

Is there ani fix for it?

1

There are 1 best solutions below

0
Mary Rose Cook On

This seems likely to be a bug or an unimplemented feature. There is an open GitHub issue filed on the Mocha repo.