You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As ember-qunit is progressing towards its 5.0.0 release, I'd like to ensure that it is compatible with Embroider. The goal of that release is to play nicely with the goals of Embroider. Some of the major changes there:
Move qunit and @ember/test-helpers to be peerDependencies (along with validation that the app provides them)
Remove usage of content-for to emit the DOM structure required for tests/index.html (instead have it included in the file normally)
Avoid app.importing any JavaScript assets (including qunit itself and our custom configuration)
Part of the issue that we run into with the last item above is that qunit is no longer evaluated directly in the root of the test-support.js file, it is now in a module (by way of either ember-auto-import or Embroider magic). Unfortunately, both ember-cli and Embroider have baked in the assumption that by the end of test-support.jswindow.QUnit will be defined. This is no longer true as of ember-qunit@5.0.0-beta.3.
Specifically, the issue is in this Embroider code:
223e0cf (#752) is specifically working around this issue in a classic ember-cli build pipeline (by emitting a vendor/ember-cli/test-support-suffix.js that no longer contains the Testem.hookIntoTestFramework() invocation which clobbers the one provided by ember-cli itself). Obviously that work around doesn't work here (and its clearly haxxxors anyways).
The text was updated successfully, but these errors were encountered:
As ember-qunit is progressing towards its 5.0.0 release, I'd like to ensure that it is compatible with Embroider. The goal of that release is to play nicely with the goals of Embroider. Some of the major changes there:
qunit
and@ember/test-helpers
to bepeerDependencies
(along with validation that the app provides them)content-for
to emit the DOM structure required fortests/index.html
(instead have it included in the file normally)app.import
ing any JavaScript assets (includingqunit
itself and our custom configuration)Part of the issue that we run into with the last item above is that
qunit
is no longer evaluated directly in the root of thetest-support.js
file, it is now in a module (by way of either ember-auto-import or Embroider magic). Unfortunately, both ember-cli and Embroider have baked in the assumption that by the end oftest-support.js
window.QUnit
will be defined. This is no longer true as ofember-qunit@5.0.0-beta.3
.Specifically, the issue is in this Embroider code:
embroider/packages/core/src/app.ts
Lines 256 to 258 in 38a4030
223e0cf
(#752) is specifically working around this issue in a classic ember-cli build pipeline (by emitting avendor/ember-cli/test-support-suffix.js
that no longer contains theTestem.hookIntoTestFramework()
invocation which clobbers the one provided by ember-cli itself). Obviously that work around doesn't work here (and its clearly haxxxors anyways).The text was updated successfully, but these errors were encountered: