-
-
Notifications
You must be signed in to change notification settings - Fork 365
Closed
Labels
Description
This bug was initially reported on avajs/ava#1595, however, it was confirmed this happened with mocha as well so it might be something happening with
nyc.
Expected Behavior
Files containing the string //# sourceMappingURL= to be tested without breaking.
Observed Behavior
Apparently, there's a bug where files containing a string with the initial part of a sourcemap instruction, i.e: //# sourceMappingURL=, will fail to generate code coverage as well as being tested.
Bonus Points! Code (or Repository) that Reproduces Issue
Repro: https://github.com/zanona/ava-sourcemap-fail
Forensic Information
Operating System: the operating system you observed the issue on.
Environment Information: information about your project's environment, see instructions below:
node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
Node.js v8.7.0
darwin 16.7.0
ava --version > 0.23.0
npm --version > 5.5.1