Open Prabin1111 opened 1 year ago
Looks like two issues here:
layout.component.spec.mjs
, home.component.spec.mjs
, and home.component.spec.mjs.map
(are there others? text looks cut off). Do you have multiple source files with these names? Maybe home.component.spec.ts
and home.component.spec.mts
?This can happen when you have two .spec.ts files that have the same names in different folders. The jest builder is not respecting the folder nesting, and is flattening all the output .mjs files into the same outputPath.
I've made a repo to demonstrate the issue: https://github.com/cplummer-linq/ng16-jest-output-path
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
i have just update angular 15 to 16 and install "jest": "^29.5.0" and "@types/jest": "^29.5.1",
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response