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
{{ message }}
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
Running tests in watch mode (the default) runs a second process which generates a coverage report in the background. Unfortunately, once it finishes, the watcher picks up the changes to the .js files in coverage/ and re-runs the tests. It doesn't cost much in time, but it's a lot of unnecessary and confusing console output.
Mocha's watch is not configurable, and will eventually be deprecated. However, when running Mocha in a spawned process, it is by far the quickest way to re-run tests in a transpiled project.
One possible fix is to have an intermediate script which requires the mochaTestHelper.js file, watches only certain directories, and runs Mocha programatically - which should retain the speed. This is more complicated, and will require rewriting some things we currently get from Mocha for free. However, it may simplify some of the test.js command code.
The text was updated successfully, but these errors were encountered:
Running tests in watch mode (the default) runs a second process which generates a coverage report in the background. Unfortunately, once it finishes, the watcher picks up the changes to the .js files in coverage/ and re-runs the tests. It doesn't cost much in time, but it's a lot of unnecessary and confusing console output.
Mocha's watch is not configurable, and will eventually be deprecated. However, when running Mocha in a spawned process, it is by far the quickest way to re-run tests in a transpiled project.
One possible fix is to have an intermediate script which requires the mochaTestHelper.js file, watches only certain directories, and runs Mocha programatically - which should retain the speed. This is more complicated, and will require rewriting some things we currently get from Mocha for free. However, it may simplify some of the test.js command code.
The text was updated successfully, but these errors were encountered: