Skip to content

fix(@angular/build): normalize karma asset paths before lookup #29923

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

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

clydin
Copy link
Member

@clydin clydin commented Mar 25, 2025

When handling a request for a configured asset with the application- based karma unit testing, the asset URL is now normalized to the executing platform's path format before looking up the asset. This is required due to the build file paths being based on the underlying operating system's paths which may not align with a URL's path separator such as when using Windows.

When handling a request for a configured asset with the application-
based karma unit testing, the asset URL is now normalized to the
executing platform's path format before looking up the asset. This
is required due to the build file paths being based on the underlying
operating system's paths which may not align with a URL's path separator
such as when using Windows.
@clydin clydin added the target: patch This PR is targeted for the next patch release label Mar 25, 2025
@clydin clydin linked an issue Mar 25, 2025 that may be closed by this pull request
1 task
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Mar 25, 2025
@alan-agius4 alan-agius4 merged commit bd917d9 into angular:main Mar 25, 2025
33 checks passed
@alan-agius4
Copy link
Collaborator

The changes were merged into the following branches: main, 19.2.x

@clydin clydin deleted the karma/windows-asset-paths branch March 25, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"browser" to "application" test builder regression: assets not found
2 participants