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
Running the command ../node_modules/.bin/nyc --cache false --source-map ../node_modules/.bin/mocha Test/Spork.js
Should produce coverage with correct file and error line numbers
note attempted to use inline and linked source maps
Observed Behavior
Running the command
../node_modules/.bin/nyc ../node_modules/.bin/mocha Test/Spork.js
Produces no coverage if source map urls are present in tested files
If no source map urls are present in tested files ../node_modules/.bin/nyc ../node_modules/.bin/mocha Test/Spork.js
then coverage is as expected but error lines are incorrect
If running the command ../node_modules/.bin/nyc --source-map ../node_modules/.bin/mocha Test/Spork.js
then no coverage is produced and line numbers are still incorrect
Running the command ../node_modules/.bin/mocha Test/Spork.js
produces the expected results showing the correct file and line number for the error
Troubleshooting steps
still occurring when I put cache: false in my nyc config
Link to bug demonstration repository
Expected Behavior
Running the command
../node_modules/.bin/nyc --cache false --source-map ../node_modules/.bin/mocha Test/Spork.js
Should produce coverage with correct file and error line numbers
note attempted to use inline and linked source maps
Observed Behavior
Running the command
../node_modules/.bin/nyc ../node_modules/.bin/mocha Test/Spork.js
Produces no coverage if source map urls are present in tested files
If no source map urls are present in tested files
../node_modules/.bin/nyc ../node_modules/.bin/mocha Test/Spork.js
then coverage is as expected but error lines are incorrect
If running the command
../node_modules/.bin/nyc --source-map ../node_modules/.bin/mocha Test/Spork.js
then no coverage is produced and line numbers are still incorrect
Running the command
../node_modules/.bin/mocha Test/Spork.js
produces the expected results showing the correct file and line number for the error
Troubleshooting steps
cache: false
in my nyc configEnvironment Information
The text was updated successfully, but these errors were encountered: