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

Istanbul issue in Windows #151

Closed
wassimz opened this issue Nov 21, 2016 · 7 comments
Closed

Istanbul issue in Windows #151

wassimz opened this issue Nov 21, 2016 · 7 comments

Comments

@wassimz
Copy link

wassimz commented Nov 21, 2016

Hi,

When run the test script, I got the same error as here.
I am running under windows (node v5).

Any hint to solve it ?

@kunalkapadia
Copy link
Owner

kunalkapadia commented Nov 23, 2016

@wassimz Can you try this npm test cmd
"test": "NODE_ENV=test babel-node node_modules/.bin/isparta cover node_modules/mocha/bin/_mocha -- --ui bdd --reporter spec --colors --compilers js:babel-core/register ./server/**/*.test.js"

I have just replaced _mocha with node_modules/mocha/bin/_mocha

Please let me know if this works, so that I can close the issue.

@wassimz
Copy link
Author

wassimz commented Nov 23, 2016

@kunalkapadia

Yes I have already tried and still getting the same issue exception. Below is what I am getting:

SET NODE_ENV=test & babel-node node_modules/.bin/isparta cover node_modules/mocha/bin/_mocha -- --ui bdd
--reporter spec --colors --compilers js:babel-core/register ./server/**/*.test.js
G:\Code\Project-Test\node_modules.bin\isparta:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^
SyntaxError: missing ) after argument list
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:404:25)
at Module._extensions..js (module.js:432:10)
at Object.require.extensions.(anonymous function) [as .js] (G:\Code\Java\QMIC\Beacons\Back-End\Proximi
ty-Firebase\node_modules\babel-register\lib\node.js:152:7)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:457:10)
at G:\Code\Project-Test\node_modules\babel-cli\lib_babel-node.js:159
:24
at Object. (G:\Code\Java\QMIC\Beacons\Back-End\Proximity-Firebase\node_modules\babel-cli\li
b_babel-node.js:160:7)
at Module._compile (module.js:425:26)

@kunalkapadia
Copy link
Owner

@wassimz Can you try the same with node v4 or node v6. As v6 is the LTS version right now ?

@wassimz
Copy link
Author

wassimz commented Nov 24, 2016

OK I will try to install the v6 and I will keep informed. Thanks

@wassimz
Copy link
Author

wassimz commented Dec 6, 2016

@kunalkapadia

I have tried with the latest LTS version (6.9.1) and still get the same issues.

@Altiano
Copy link

Altiano commented Dec 12, 2016

same issue

@kunalkapadia kunalkapadia changed the title Istanbul issue Istanbul issue in Windows Dec 14, 2016
@delsner
Copy link
Contributor

delsner commented Dec 27, 2016

I created a PR #205 which should fix the issue

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

4 participants