-
Notifications
You must be signed in to change notification settings - Fork 13
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
Separated docs and test apps #165
Conversation
fd96ea5
to
02e6c10
Compare
….28 and 4.4 ember-try scenarios run
02e6c10
to
9420705
Compare
test-port: 7364 | ||
- device: 'w3-h3' | ||
test-port: 7365 | ||
- 'embroider-optimized' |
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.
Previously, enabling embroider-optimized
was not possible because the documentation app uses ember-css-modules
. (In other words, the addon itself could always have passed embroider-optimized
.)
@@ -1,6 +1,6 @@ | |||
import { registerDestructor } from '@ember/destroyable'; | |||
import { action } from '@ember/object'; | |||
import { inject as service } from '@ember/service'; | |||
import { service } from '@ember/service'; |
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.
Previously, we couldn't use the new syntax (introduced in Ember 4.1
) because of the 3.28
scenario.
'@ember/test-helpers': '2.7.0', | ||
'@types/ember__test-helpers': '2.8.3', | ||
'@types/ember-qunit': '6.1.1', | ||
'ember-qunit': '6.0.0', |
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.
Temporary solution to emberjs/ember-test-helpers#1232
staticAddonTrees: false, // due to ember-css-modules | ||
staticComponents: false, // due to ember-css-modules |
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.
TODO
If no further development to make ember-css-modules
compatible with Embroider happens, consider removing the addon.
https://github.com/evoactivity/ember-modern-css#ember-modern-css
Background
Since
v1.0.0
, the test-app forember-container-query
has served as a documentation app. As a result, whether the addon itself is compatible with the beta and canary versions of Ember as well as Embroider (according toember-try
) has depended on whether the documentation app is compatible with them.What changed?
I created a package called
docs-app
, which runs on the latest version of Ember and the strictest settings from Embroider. The application tests (e.g. Percy snapshots), in particular, document what end-developers can expect to see fromember-container-query
.The
test-app
now contains the rendering tests for the<ContainerQuery>
component, the 3 helpers, and the modifier. These tests are run under variousember-try
scenarios. Note thatember-canary
andembroider-optimized
are now enabled.