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
Testing ES2015+ requires switching from built-in NYC instrumentation to babel-plugin-istanbul.
Everything is tested/supported with babel 7. I don't know if current versions will work with babel 6 but we don't support it.
It's important to have nyc require @babel/register. In this setup the "all": true setting is only honored if nyc actually requires babel.
It doesn't seem to create harm for mocha to also require @babel/register. Having mocha require babel is needed if you want npm test not run coverage and npm run coverage to do nyc npm test.
I'm closing this as it seems to be a configuration error rather than an nyc bug. If you experience issues after following the instructions I provided let us know.
Link to bug demonstration repository.
https://github.com/robtarr/broken-nyc
Expected Behavior
Repeated runs against the same codebase should return the same results.
Observed Behavior
Different output on consecutive nyc runs
Forensic Information
MacOS Mojave 10.14.2
Node 10.11.0
https://github.com/robtarr/broken-nyc/blob/master/environment.txt
The text was updated successfully, but these errors were encountered: