-
Notifications
You must be signed in to change notification settings - Fork 12k
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
"browser" to "application" test builder regression: assets not found #29872
Comments
Unfortunately, we are unable to reproduce the problem as described. |
Absolutely, should have done from the start. Give me several days. |
I ran into the same problem (assets not being served by Karma with the new application builder) while converting our project. I can reproduce it on a new/clean Angular 19.2.4 project. And I also found a workaround. Minimal steps to reproduce:
|
@jr01 That asset configuration does not work with a build either. This is due to the input value ( |
@clydin not completely sure what you mean, but the assets in that root folder are copied to |
Command
test
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Discovered while evaluating if "application" karma builder is ready for my project. On the latest Angular version - 19.2.3 - when switching "@angular-devkit/build-angular:karma" mode from "browser" to "application", my tests lose the ability to load assets. I presume the assets are still served, but couldn't figure out what's the new path is. In the "browser" setup, the assets load perfectly fine from the same path as in the full application.
Test builder configuration:
Minimal Reproduction
Have a component that uses Mat Icon SVG icons.
My icon initializer:
Author a test for the component.
To load icons in the test, provide these:
Run the test, i.e.
ng test --browsers=ChromiumHeadless --include=**/page-signin.component.spec.ts
.Exception or Error
Your Environment
Anything else relevant?
Test runner output in "browser" mode:
The text was updated successfully, but these errors were encountered: