New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extension default values are not correct in documentation #1170
Comments
I'm having the same issue with the Given:
I expect the following two scripts to produce the same result: nyc --all -- node -p '"tests pass"' nyc --all --extension .mjs -- node -p '"tests pass"' But the first script produces:
Whereas the second script produces:
Note that the only thing I changed was the |
I also just noticed that |
The README.md on github.com reflects the current state of @Avaq please also note that native node.js ESM implementation does not support nyc. The native ESM implementation does not provide any hooks for transpiling code, so for nyc to work with native ESM you would need to pre-instrument all code. I hope the node.js team fixes this as it will effectively make |
to reproduce
https://github.com/tetrohed/nyc_react_coverage
Expected Behavior
all extensions mentioned in the documentation are picked up by
nyc instrument
Observed Behavior
have to explicitly set extension: ['.js', '.jsx'] for 'jsx' to be picked up by the instrumenter
NOTE: the repo is setup with everything to reproduce, just remove extension: ['.js', '.jsx'] from nyc.config.js and run
yarn run coverage
you can see the file test.jsx is not present in insrumented folderThe text was updated successfully, but these errors were encountered: