-
Notifications
You must be signed in to change notification settings - Fork 177
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
_$jscoverage is not defined | blanket 1.2.1 #554
Comments
@alex-seville, what up brother ! |
I encountered this issue as well and reverted to |
I just experienced this same error. What are you reverting to version 1.9.1? |
@westy92 |
If 1.2.1 is the latest version, how can 1.9.1 exist? Something doesn't add up. Do you mean 1.1.9? |
@westy92 yes you're right! |
I've published a new version, 1.2.2. Let me know if it changes anything. |
Hm sadly I still encounter the issue with [email protected]. Here is the trace:
And a partial
|
+1 |
Hmm, it's working on travis CI at [email protected] - https://travis-ci.org/alex-seville/blanket/jobs/110242642 |
Same issue here when trying to use A very simple example of this:
Fine, so I add use strict:
And the output:
Snippet from my package.json:
Tested on various versions of Node 4 and 5. |
Sounds like you're using ES6, you'll need to let Blanket know: |
I have already let Blanket know I'm using ES6. See the snippet from my package.json above which has the We are using ES6 throughout our codebase but have had to wrap most ES6 files in a function wrapper to get Blanket to work. This doesn't work for top-level files however such as app.js. As soon as I add I can reproduce this in a simple example:
However:
|
This is has been around for a long time, originally report Dec.2013. I need to run npm install [email protected] to make my tests run. |
Same problem here ( |
Same with me... |
1 similar comment
Same with me... |
Same here. Busted. We absolutely need ecmaVersion 6. Tried going to a lower version and other problems occur because of no ecmaVersion 6 support. |
I'm having the same problem when using ES6. Running 1.1.9 causes another problem:
Anyone has a solution? |
I'm having this problem too with blanket 1.2.3 |
* Do not require end-users to have `npm@2` * Use xvfb-run and test on more recent Node platforms * Update tests (.eu has changed) * Embed updated rules * Do not try to build `node@7` * Revert to `[email protected]` refs alex-seville/blanket#554
I too am having this problem with 1.2.3 using es6
|
blanket 1.1.10 and above gives the error "_$jscoverage is not defined" when running the test suite. More details on the error are available at: alex-seville/blanket#554 Use version 1.1.9 which is not affected
I'm using blanket 1.2.1 with mocha, it gives me this error !
i must downgrade to 1.1.9 to make it work :'(
Snippets from Package.json
"scripts": { "test": "mocha && mocha --require blanket -R html-cov > coverage.html" }, "config": { "blanket": { "pattern": "index.js", "data-cover-never": ["node_modules", "test"] } }
The error
Error: BLANKET-Error parsing instrumented code: ReferenceError: _$jscoverage is not defined at /home/idsfn/Documents/training/mochaGettingStarted/node_modules/blanket/src/index.js:177:37 at Object.__dirname.blanket._blanket.instrument (/home/idsfn/Documents/training/mochaGettingStarted/node_modules/blanket/src/blanket.js:126:17) at Object.require.extensions..js (/home/idsfn/Documents/training/mochaGettingStarted/node_modules/blanket/src/index.js:158:25) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object.<anonymous> (/home/idsfn/Documents/training/mochaGettingStarted/test/index.js:4:12) at Module._compile (module.js:410:26) at Module._extensions..js (module.js:417:10) at Object.require.extensions..js (/home/idsfn/Documents/training/mochaGettingStarted/node_modules/blanket/src/index.js:144:17) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at /home/idsfn/Documents/training/mochaGettingStarted/node_modules/mocha/lib/mocha.js:219:27 at Array.forEach (native) at Mocha.loadFiles (/home/idsfn/Documents/training/mochaGettingStarted/node_modules/mocha/lib/mocha.js:216:14) at Mocha.run (/home/idsfn/Documents/training/mochaGettingStarted/node_modules/mocha/lib/mocha.js:468:10) at Object.<anonymous> (/home/idsfn/Documents/training/mochaGettingStarted/node_modules/mocha/bin/_mocha:403:18) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:442:10) at startup (node.js:136:18) at node.js:966:3
The text was updated successfully, but these errors were encountered: