-
Notifications
You must be signed in to change notification settings - Fork 147
nyc/istanbul support #28
Comments
If it also helps, my
|
Hi @dschnare! Could you set up simple repro repo? That would help. |
I actually found a solution. Just set the
|
@jdalton Here's a simple repo you can try out. |
Thank you @dschnare! I'm just making the issue |
@jdalton after messing around a little bit, I've discovered that every second (or third sometimes) run of
Eventually if you run |
The |
I've narrowed it down to only occurring when you have the However when Code in var fnStats = fileCoverage.f,
fnMeta = fileCoverage.fnMap;
if (!fnStats) {
return;
}
Object.keys(fnStats).forEach(function (fName) {
var count = fnStats[fName],
meta = fnMeta[fName],
type = count > 0 ? 'yes' : 'no',
startCol = meta.decl.start.column, The Anyway, I really believe that when |
I wonder if nyc taps into the Node module load system as well to swap in-and-out instrumented calls. As we stabilize it'd great to get tools like that working together. |
Good news! Using v0.3.0 your std-esm-sandbox example appears to work 🎉 |
Not working with later versions 0.6.0 - 0.7.1. It still works with 0.3.0 - 0.5.1 |
@laggingreflex require = require('@std/esm')(module) The "test": "NODE_ENV=testing nyc mocha --require @std/esm --opts .mocha.opts" Mocha expands the "require": [
"@std/esm",
"./script/require-all"
] invokes the command, before the suggested change, it invokes I've opened an issue on |
@jdalton thanks for taking this on \o/ I now know your motivation for passing along arguments. |
Hey guys, might not be in your domain of things to support, but it would awesome sauce if
@std/esm
could be used withistanbul
. Currently when using withnyc
I get this error:My
.nycrc
file looks like this:The text was updated successfully, but these errors were encountered: