-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Description
Not sure if this issue belongs here, or in testem, but I've only seen this issue in the ember.js repo, not local addons.
Running npm run test or any testem command results in a error about QUnit not being found. This is on a brand new clone.
// testem
Uncaught ReferenceError: QUnit is not defined at http://localhost:7357/5163/tests/index.html?hidepassed, line 23
Uncaught SyntaxError: Unexpected token { at http://localhost:7357/5163/tests/index.html?hidepassed, line 67
Uncaught ReferenceError: QUnit is not defined at http://localhost:7357/5163/tests/index.html?hidepassed, line 80
Uncaught ReferenceError: QUnit is not defined at http://localhost:7357/5163/tests/index.html?hidepassed, line 94
Uncaught ReferenceError: QUnit is not defined at http://localhost:7357/5163/tests/index.html?hidepassed, line 105
Uncaught ReferenceError: QUnit is not defined at http://localhost:7357/5163/tests/index.html?hidepassed, line 180
Uncaught ReferenceError: QUnit is not defined at http://localhost:7357/5163/tests/index.html?hidepassed, line 198
// npm test
ReferenceError: Can't find variable: QUnit
undefined:5
:0 in exit
phantomjs://code/runner.js:56 in onCallback
phantomjs://platform/webpage.js:146 in connector
:0 in call
:1 in callPhantom
:55
http://localhost:13141/qunit/qunit.js:313 in runLoggingCallbacks
http://localhost:13141/qunit/qunit.js:699 in done
http://localhost:13141/qunit/qunit.js:637 in process
http://localhost:13141/qunit/qunit.js:611 in begin
http://localhost:13141/qunit/qunit.js:671
index.html issues
The index.html test harness has 2 issues.
First, the QUnit path is wrong. It's attempting to load http://localhost:7357/8160/qunit/qunit.js, when the qunit file is really at http://localhost:7357/8160/dist/qunit/qunit.js
Second, this line exists in index.html, which looks like some template that was not actually compiled.
window.ENV.FEATURES = !!QUnit.urlParams.prod ? {{PROD_FEATURES}} : {{DEV_FEATURES}};
npm version 2.14.2
node version 4.0.0
ember-cli: 2.4.3
global testem: 1.6.0
Reactions are currently unavailable