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
Thanks for pointing this out. This was left over from trying to fix an issue with nyc and mocha (istanbuljs/nyc#798).
#1071 pulled out the jsdom testing harness but also addressed a memory leak in the tests, so this should be less of a concern now. I've updated our tests commands (and the corresponding CONTRIBUTING sections) to simply use npm test and you can now npm test -- --grep=lifecycle.
Unable to run a single test as per the https://github.com/marko-js/marko/blob/master/.github/CONTRIBUTING.md doc
In the contributing docs it states that you can run a single test by :
npm run mocha -- --grep=lifecycle
however the mocha script that actually run is :
And therefore the
--grep=lifecycle
part gets appended afterexit 1
leading to every test being run.npm prints out the command that is run as :
> mocha --timeout 10000 --max-old-space-size=768 ./test/*/*.test.js || exit 1 "--grep=lifecycle"
I tried creating a new script
However when running that I end up running 0 tests :
The only way I was able to target a subset of tests was to change the script to be
and then run it passing the test-case.test.js file as the first argument e.g.
The text was updated successfully, but these errors were encountered: