The entire test bundle is lost if typescript is used
NullVoxPopuli opened this issue · comments
reproduction here: https://github.com/NullVoxPopuli/ember-cli-babel-loses-test-bundle-if-typescript/commits/main
steps:
ember new my-app
cd my-app
- enable typescript in ember-cli-babel
- make some TS
mv tests/test-helper.js tests/test-helper.ts mv app/app.js app/app.ts ember g component foo mv tests/integration/component/foo-test.js tests/integration/component/foo-test.js.ts
ember s
visit /tests
open console
Uncaught Error: Could not find module `typescript-test/tests/test-helper` imported from `(require)`
at missingModule (loader.js:247)
at findModule (loader.js:258)
at requireModule (loader.js:24)
at tests-suffix.js:1
omg. I need to stop for the day. ember-cli-build should be ember-cli-babel. 🤦