-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CI] Add embroider-safe scenario #1157
Conversation
…11y-testing) is not embroider compatible
4897d17
to
4a5700c
Compare
@@ -41,9 +41,12 @@ jobs: | |||
timeout-minutes: 10 | |||
|
|||
strategy: | |||
fail-fast: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semi unrelated. This allows all ember-try scenarios to run to completion.
@@ -100,6 +103,7 @@ | |||
}, | |||
"homepage": "https://Addepar.github.io/ember-table", | |||
"resolutions": { | |||
"@ember/test-waiters": "^3.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ember/test-waiters at 3.0.1 is not compatible with embroider. We fix this using a resolution because it's a secondary dependency of ember-a11y-testing, and bumping ember-a11y-testing to the ^5.2.1 range did not pick up the newer ember/test-waiters.
In a follow-up I'll attempt to upgrade ember-a11y-testing, at which point we can probably remove this.
"@ember/test-helpers": "^2.8.1", | ||
"@embroider/test-setup": "^4.0.0", | ||
"@glimmer/component": "^1.1.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
embroider complains if this isn't present because the dummy app imports from it here:
import Component from '@glimmer/component'; |
Follows the guidance at https://github.com/embroider-build/embroider/tree/main/packages/test-setup and adds
embroider-safe
andembroider-optimized
scenarios to the ember-try config.This PR only enables the embroider-safe scenario because the embroider-optimized one has some failures, largely due to the fact that
ember-cli-addon-docs
is not installed by default (it is only installed for the ember-try scenario namedember-default-docs
) but it is referenced from the dummy app in multiple places. The embroider-safe CI run succeeds, but the embroider-optimized (rightly, imo) complains about it.The embroider-optimized scenario also fails because some of the tests use dynamic components (here, in specific:
ember-table/tests/helpers/generate-table.js
Line 64 in 04a4e5e