question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bertdeblockcommented, Jun 5, 2022

The import path for addons should actually be import { setupRenderingTest } from 'dummy/tests/helpers';.

0reactions
bertdeblockcommented, Jun 11, 2022

Small update. I’m working on fixing this. I’m just adding some extra tests, to make sure I don’t introduce any regressions.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found