-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fresh app 404's on missing assets/test-support.css #10428
Comments
I was just trying to figure out where this gets built from. I'm pretty sure it's used somehow in ember-a11y-testing as invocations of Edit - never mind this comes from //test-helpers.js
import { setRunOptions } from 'ember-a11y-testing/test-support';
setRunOptions({
preload: false,
}); |
@NullVoxPopuli any thoughts? |
It does seem like a bug with ember-cli. Like, since ember-cli is the convention based build tool, it should probably gracefully fallback to an empty file for test-support.js, and log a message saying that no v1 addons put any content into it At the same time, if ember-qunit was the only producer of test-support content, i think it's totally legit to just remove the entry from index.html |
I don't see this on v5.7.0 or v5.5.0, is there something more specific than a new app to recreate it? |
FWIW I've just created an addon following https://github.com/embroider-build/addon-blueprint?tab=readme-ov-file (I wanted to try to migrate my private addon to v2). |
I just tried again, simply generating a new app with the latest ember-cli (5.8) through |
So we've been looking at this area recently because of the Embroider upgrades, and I think the ember-cli behaviour is to not generate a test-support.css file if there are no addons that inject things (via classic addon behaviour). I suspect that this is happening now because there are no longer any addons that inject things into test-support.css, maybe ember-qunit recently changed to a v2 addon? I don't know that we should just remove it from the blueprint, I think the better solution would be to generate it even when it is going to be empty, what do we think? |
The only addons I knew of using this were ember-mocha (unsupported/deprecated) and ember-qunit before v2 conversion. Could be that there's others around indeed, so seems better. |
I’m currently inserting a custom test stylesheet using app.import('tests/custom-test-styles.css', { type: 'test' }) When used this way the styles are output in How or why? no idea, but thought it might be helpful to be aware of when considering removing it from the blueprint. (I'm currently using Ember v5.10 without embroider.) |
We should really deprecate @seanCodes The |
I just deleted test-support.css from every project in a monorepo. We should probably remove it from the blueprint at some point |
Generating a fresh ember 5.5 app results in the following error.
This is likely due to ember-qunit now being a v2 addon (it internally handles it's styles with a JS import). Probably the blueprint needs to have the
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
import removed?The text was updated successfully, but these errors were encountered: