[X] Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
16.x
Description
The first time I run ng test I get several errors related to invalid paths where $fa-font-path seems to be resolved incorrectly as ../node_modules/@fortawesome/fontawesome-free/scss/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf whereas the actual path is ../node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf.
The error does not occur when running ng test a second time. The app itself runs fine with ng serve with styles and icons being displayed correctly.
I'm not sure whether this is an error with Angular or somewhere in the chain of Karma, sass, post-css, fontawesome etc.
Minimal Reproduction
Create a new project ng new with scss
Add karma configs ng generate config karma
Install FontAwesome npm i @fortawesome/fontawesome-free
Command
test
Is this a regression?
The previous version in which this bug was not present was
16.x
Description
The first time I run
ng test
I get several errors related to invalid paths where$fa-font-path
seems to be resolved incorrectly as../node_modules/@fortawesome/fontawesome-free/scss/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf
whereas the actual path is../node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf
.The error does not occur when running
ng test
a second time. The app itself runs fine withng serve
with styles and icons being displayed correctly.I'm not sure whether this is an error with Angular or somewhere in the chain of Karma, sass, post-css, fontawesome etc.
Minimal Reproduction
ng new
with scssng generate config karma
npm i @fortawesome/fontawesome-free
styles.scss
ng test
Exception or Error
Your Environment
Anything else relevant?
OS: MacOS 13.6.2