[Bug] Test suite fails to run using ember-source v4.4.1
See original GitHub issue🐞 Describe the Bug
Using ember-source v4.4.1, when we generate a component and run the test suite, we will have the following error
Died on test #1: Could not find module `ember-test-ember-4-4/tests/helpers` imported from `dummy/tests/integration/components/foo-test`
In fact, it seems to fails when we try to import any files from my-addon-name/tests/helpers/*
Note that it was working on ember-source v4.3.0 because test files were generated with import { setupRenderingTest } from 'ember-qunit';
, but using import { setupRenderingTest } from 'my-addon-name/tests/helpers';
in ember-source v4.3.0 we have the same error than above.
🔬 Minimal Reproduction
npm uninstall -g ember-cli && npm install -g ember-cli
ember addon ember-test-ember_4_4 && cd ember-test-ember_4_4
ember g component foo && ember test
https://github.com/ndekeister-us/ember-test-ember_4_4
😕 Actual Behavior
Using latest version of ember-source v4.4.1, it fails to run the test suite because it fails to import files in my-addon/tests/helpers/*
🤔 Expected Behavior
Using latest version of ember-source, i’m able to run the test suite
🌍 Environment
- Ember: 4.4.1
- Node.js/npm: 14.17.6/8.4.0
- OS: Mac
- Browser: Chrome
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
ember-exam | Yarn - Package Manager
Ember Exam is an addon to allow you more control over how you run your tests when used in conjunction with Ember QUnit...
Read more >Xcode 12 issues running multiple t… | Apple Developer Forums
Xcode 12 issues running multiple test suites with 'Underlying Error: Invalid device state' [only when running via SSH].
Read more >Deployment failed for Community.Talk-Staind - Render
Alright, I've just changed the run command to see if the cause was ... Using rack-test 1.1.0 Dec 17 01:49:52 PM Using actionpack...
Read more >Identifying Test-Suite-Overfitted Patches through Test Case ...
test -suite-overfitted, or overfitting, which passes the test suite but does not actually repair the bug. In this paper, we propose DiffT-.
Read more >Isolating Failure Causes through Test Case Generation
Automated debugging, test case generation, failure classification, ... differences between passing and failing runs (c) in terms of runtime facts (d)—right ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The import path for addons should actually be
import { setupRenderingTest } from 'dummy/tests/helpers';
.Small update. I’m working on fixing this. I’m just adding some extra tests, to make sure I don’t introduce any regressions.