Howdy!
Background can be found in this topic. (apologizes for the incoming wall of text)
After upgrading to 3.4.4 I’m now seeing this when I attempt to run my test suite:
Global error: Uncaught ReferenceError: QUnit is not defined at http://localhost:7357/assets/test-support.js, line 59296
Global error: Uncaught Error: Could not find module `ember-mocha` imported from `thcic-frontend/tests/test-helper` at http://localhost:7357/assets/vendor.js, line 252
Global error: Uncaught Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/assets/vendor.js, line 27798
Global error: Uncaught Error: Could not find module `ember-cli/test-loader` imported from `(require)` at http://localhost:7357/assets/vendor.js, line 19187
DEPRECATION: Getting the '@each' property on object is deprecated [deprecation id: ember-metal.getting-each] See https://emberjs.com/deprecations/v3.x#toc_getting-the-each-property for more details.
at logDeprecationStackTrace (http://localhost:7357/assets/vendor.js:28041:29)
at HANDLERS.<computed> (http://localhost:7357/assets/vendor.js:28143:17)
at raiseOnDeprecation (http://localhost:7357/assets/vendor.js:28065:17)
at HANDLERS.<computed> (http://localhost:7357/assets/vendor.js:28143:17)
at invoke (http://localhost:7357/assets/vendor.js:28152:17)
at deprecate (http://localhost:7357/assets/vendor.js:28124:34)
at Array.<anonymous> (http://localhost:7357/assets/vendor.js:64334:47)
at ComputedProperty.get (http://localhost:7357/assets/vendor.js:56534:36)
at Array.CPGETTER_FUNCTION (http://localhost:7357/assets/vendor.js:54804:31)
Uncaught ReferenceError: QUnit is not defined at http://localhost:7357/assets/test-support.js, line 59296
Uncaught Error: Could not find module `ember-mocha` imported from `thcic-frontend/tests/test-helper` at http://localhost:7357/assets/vendor.js, line 252
Uncaught Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/assets/vendor.js, line 27798
Uncaught Error: Could not find module `ember-cli/test-loader` imported from `(require)` at http://localhost:7357/assets/vendor.js, line 19187
Steps I took to get here:
- updated forwards-compatible packages for Ember 2.18.2 application
- ran
ember-cli-update --to 3.0
- fixed merge conflicts; test suite Green
- Replaced
ember-cli-mocha@0.15.0
withember-mocha@0.14.0
; fixed 1 test - removed
ember-cli-update
as an addon and globally installed it - ran
ember-cli-update
and did Semver String ‘3.4.4’ - fixed merge conflicts
- fixed component template; had an errant
<
- test suite hung; I normally run
ember test --reporter dot --silent
- singled out a test using
--filter
; noticed the errors - searched source for
"qunit"
in the tests; found an import in atests/helper
file - commented out the contents of the file and reran the test to no avail
- Went to the web, tried the following:
- removed
node_modules
and reinstalled packages - downgraded
ember-mocha
to0.13.1
; npm uninstall & ember install - downgraded
ember-mocha
to0.13.0
; npm uninstall & ember install
I feel I am truly stuck.
Warning: Javascript is not my ‘first’ language. And I still struggle with Ember and JS-development in general. So, assume a complete rookie here. Your questions will not offend me because I’m trying to learn. I don’t know what I don’t know.
Thank you, in advance, to any and all assistance.