Skip to content
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

getting this error when I run - yarn test:coverage #458

Open
idanb11 opened this issue Jan 8, 2019 · 1 comment
Open

getting this error when I run - yarn test:coverage #458

idanb11 opened this issue Jan 8, 2019 · 1 comment

Comments

@idanb11
Copy link

idanb11 commented Jan 8, 2019

$ cross-env NODE_ENV=test ./node_modules/.bin/istanbul cover _mocha -- --ui bdd --reporter spec --colors server --recursive

=============================== Coverage summary ===============================
Statements   : 0% ( 0/240 )
Branches     : 0% ( 0/29 )
Functions    : 0% ( 0/61 )
Lines        : 0% ( 0/239 )
================================================================================
C:\Users\Idanb11\Work\Il Makiage\microservice-boilerplate\node_modules\.bin\_mocha.CMD:1
(function (exports, require, module, __filename, __dirname) { @IF EXIST "%~dp0\node.exe" (
                                                              ^

SyntaxError: Invalid or unexpected token
    at new Script (vm.js:79:7)
    at createScript (vm.js:251:10)
    at Object.runInThisContext (vm.js:303:10)
    at Module._compile (internal/modules/cjs/loader.js:657:28)
    at Module.replacementCompile (C:\Users\Idanb11\Work\Il Makiage\microservice-boilerplate\node_modules\append-transform\index.js:58:13)
    at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Object.<anonymous> (C:\Users\Idanb11\Work\Il Makiage\microservice-boilerplate\node_modules\append-transform\index.js:62:4)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@idanb11
Copy link
Author

idanb11 commented Jan 8, 2019

I get the same error when I run

yarn test:check-coverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant