-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
NYC v11.2.0 exclude file with sourcemap from coverage #668
Comments
Because #637 is likely to cause a lot of regression, can't it be activated by a flag ? (like --filter-sourcemap) I really like to keep my output files away from my source files |
Since issue #637 it's not possible have coverage if output files are not in a subdirectory of source files without including the source directory manually which is I think an unexpected default behavior. There is multiple way to solve this:
|
Finally after checking the sourcecode it's currently not possible to include files outside cwd, so the current behavior is: you can't have source files and instrument files in different roots |
Is this still an issue? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Expected Behavior
Sourcemap of files that are far away from covered .js files should be included by default, not excluded.
This is a regression introduced by #637
Observed Behavior
All my sourcemaps are excluded :(
Forensic Information
shouldInstrument is called with "/myabsolutepath/@msbuildsystem/js.typescript/src/worker.ts"
the relFile path is "../../../../../@msbuildsystem/js.typescript/src/worker.ts"
witch return false due to line 81 in test-exclude/index.js (// Don't instrument files that are outside of the current working directory.)
The text was updated successfully, but these errors were encountered: