Karm Webpack Warning for "mocked" image URL

144 Views Asked by At

I am testing an Angular app and, for specs, I'm supplying a non-existent URL for an image (e.g. /foo1.jpg).

The tests run okay, however, webpack throws a warning:

15 04 2022 06:28:22.123:WARN [web-server]: 404: /_karma_webpack_/foo1.jpg

Is there a way I can either suppress the warning (I get a LOT of them), or better mock an image path?

1

There are 1 best solutions below

0
On

As @temp_user suggested, I simply changed my references to /favicon.ico.