So I took on the task of upgrading our Ember app from 2.16 to 3.26. The application runs fine locally. Got through the lint errors (admit I just turned most of them off and then will turn them on as we can fix them). But for some reason the update and switch from ember-cli-mocha to ember-mocha broke something.
The tests run, then launch the browser like before but then just sit at 0/0 tests. The only warnings I see (other than some SASS warnings about break points) are
WARNING in ./node_modules/mocha/lib/mocha.js 170:20-37 Critical dependency: the request of a dependency is an expression @ ./node_modules/mocha/browser-entry.js @ /private/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/broccoli-62122wu2Js3C4WjSi/cache-307-bundler/staging/tests.js @ multi /private/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/broccoli-62122wu2Js3C4WjSi/cache-307-bundler/staging/l.js /private/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/broccoli-62122wu2Js3C4WjSi/cache-307-bundler/staging/tests.js
WARNING in ./node_modules/mocha/lib/mocha.js 175:24-70 Critical dependency: the request of a dependency is an expression @ ./node_modules/mocha/browser-entry.js @ /private/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/broccoli-62122wu2Js3C4WjSi/cache-307-bundler/staging/tests.js @ multi /private/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/broccoli-62122wu2Js3C4WjSi/cache-307-bundler/staging/l.js /private/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/broccoli-62122wu2Js3C4WjSi/cache-307-bundler/staging/tests.js
WARNING in ./node_modules/mocha/lib/mocha.js 213:17-30 Critical dependency: the request of a dependency is an expression @ ./node_modules/mocha/browser-entry.js @ /private/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/broccoli-62122wu2Js3C4WjSi/cache-307-bundler/staging/tests.js @ multi /private/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/broccoli-62122wu2Js3C4WjSi/cache-307-bundler/staging/l.js /private/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/broccoli-62122wu2Js3C4WjSi/cache-307-bundler/staging/tests.js
WARNING in ./node_modules/mocha/lib/mocha.js 251:26-39
Critical dependency: the request of a dependency is an expression
@ ./node_modules/mocha/browser-entry.js
@ /private/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/broccoli-62122wu2Js3C4WjSi/cache-307-bundler/staging/tests.js
@ multi /private/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/broccoli-62122wu2Js3C4WjSi/cache-307-bundler/staging/l.js /private/var/folders/b4/22wprtxxcleaning up…
Built project successfully. Stored in “/var/folders/b4/22wprtxx7m56r98b7n2dj6zdch8bkv/T/tests-dist-2021212-62122-ig6mc4.67hao”.
WARNING: The baseURL
and rootURL
settings should not be used at the same time.
We have a second project here that did upgrade to ember 3.20 and those tests run. My test files mostly match up with that project but there has to be something small I am missing. Just wondering if anyone had ideas. I can post some of my files here but they seem to match up with the other project and what I see online.
I should mention when I open the browser I can see that the tests are built, there is just something disconnected in getting them to run. After that I can cry about how many are probably broken but first things first.
I started this upgrade a while ago and I thought I had unit tests working and almost passing before but then returned to it and updated it to the latest. That version was 3.4.4 but that feels like years ago.
Any ideas that could be helpful?