code-corps-ember: Tests fail after cloning
Trying to get this project setup and running locally. I can run via remote-deployment but trying to run tests will fail:
➜ code-corps-ember git:(master) ember test
DEPRECATION: Overriding init without calling this._super is deprecated. Please call `this._super.init && this._super.init.apply(this, arguments);` addon: `ember-cli-htmlbars`
at Function.Addon.lookup (/Users/corey/Development/code-corps-ember/node_modules/ember-cli/lib/models/addon.js:896:27)
⠋ Buildingember-cli-sentry will not be loaded from bower installation
(node:65652) Warning: Possible EventEmitter memory leak detected. 11 exit listeners added. Use emitter.setMaxListeners() to increase limit
Built project successfully. Stored in "/Users/corey/Development/code-corps-ember/tmp/core_object-tests_dist-SQBp6pen.tmp".
not ok 1 PhantomJS 2.1 - Global error: SyntaxError: Functions cannot be declared in a nested block in strict mode at http://localhost:7357/assets/vendor-b0cb29b3bafe8d02a4741ea7c87e8017.js, line 58513
---
Log: |
{ type: 'error',
text: 'SyntaxError: Functions cannot be declared in a nested block in strict mode at http://localhost:7357/assets/vendor-b0cb29b3bafe8d02a4741ea7c87e8017.js, line 58513\n' }
...
not ok 2 PhantomJS 2.1 - Global error: Error: Could not find module ember-metal/core required by: ember-testing/index at http://localhost:7357/assets/test-support-fb63411330dc1fc96c77e45154906120.js, line 62
---
Log: |
{ type: 'error',
text: 'Error: Could not find module ember-metal/core required by: ember-testing/index at http://localhost:7357/assets/test-support-fb63411330dc1fc96c77e45154906120.js, line 62\n' }
...
not ok 3 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http://localhost:7357/assets/code-corps-ember-eee1c17ae20dae8ac6475699c2355ec2.js, line 9
---
Log: |
{ type: 'error',
text: 'ReferenceError: Can\'t find variable: define at http://localhost:7357/assets/code-corps-ember-eee1c17ae20dae8ac6475699c2355ec2.js, line 9\n' }
...
not ok 4 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http://localhost:7357/assets/tests-6715337fcee49d587ece7c23efe79e81.js, line 1
---
Log: |
{ type: 'error',
text: 'ReferenceError: Can\'t find variable: define at http://localhost:7357/assets/tests-6715337fcee49d587ece7c23efe79e81.js, line 1\n' }
...
not ok 5 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http://localhost:7357/assets/test-loader-349ab1ab734112d855d75a327e14b006.js, line 3
---
Log: |
{ type: 'error',
text: 'ReferenceError: Can\'t find variable: define at http://localhost:7357/assets/test-loader-349ab1ab734112d855d75a327e14b006.js, line 3\n' }
...
not ok 6 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: EmberENV at http://localhost:7357/9422/tests/index.html?hidepassed, line 1062
---
Log: |
{ type: 'error',
text: 'ReferenceError: Can\'t find variable: EmberENV at http://localhost:7357/9422/tests/index.html?hidepassed, line 1062\n' }
...
Here are the versions of the dependencies I’m working with:
➜ code-corps-ember git:(master) node -v
v6.3.0
➜ code-corps-ember git:(master) bower -v
1.7.9
➜ code-corps-ember git:(master) ember -v
DEPRECATION: Overriding init without calling this._super is deprecated. Please call `this._super.init && this._super.init.apply(this, arguments);` addon: `ember-cli-htmlbars`
at Function.Addon.lookup (/Users/corey/Development/code-corps-ember/node_modules/ember-cli/lib/models/addon.js:896:27)
ember-cli: 2.6.2
node: 6.3.0
os: darwin x64
➜ code-corps-ember git:(master) phantomjs -v
2.1.1
I’ve installed node/phantomjs through Homebrew if that makes a difference. Thanks for any help
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (8 by maintainers)
Yeah, this seems to be it: https://github.com/ariya/phantomjs/issues/14173. Downgrading their globally installed phantomJS solved it. So if you have
phantomjsinstalled via homebrew, you can do:and try running
ember testagain.Yes, agreed on avoiding
sudowithnpm. It causes all sorts of nastiness.Out of curiosity, do you use
nvm?