How to mock css that is loaded via html require when testing components

If you are using Jest, you should be able to do this:

That works for me for plain .css files.

But I have not been able to get it to work .scss files directly. Anyone solved that?

Found an open bug ticket at:

1 Like