-
Notifications
You must be signed in to change notification settings - Fork 12
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
npm test causing SyntaxError #23
Comments
npm test
causing SyntaxError: Unexpected token {
I updated node to v8.9.1, and now all the tests are failing, all with the same issue. Here's one of the tests:
|
Reproducing the discussed problem + solution here for others' reference: Problemnormally, all plugins in solium are supposed to be installed separately by the dev. Now when you add new rules to the plugin in your dev environment & run the test with new configuration, solium (dev-dependancy) requires the plugin. But it doesn't require this plugin that you're working on. Instead it requires the one installed inside it as local dep. So right now what you did was to remove all plugin modules within solium's reach and make your modified plugin globally available so Solium requires the modified one. SolutionClone this repo and download all deps
(You need to do the above only once for every new copy you download) Bear with this for a while, I'll fix it very soon |
Fixed. Now you can set up dev env easily:
|
After running
npm install --dev
(which works fine), I runnpm test
and get the following:This is running node v5.9.0
The text was updated successfully, but these errors were encountered: