We use mockery also to mock requires on css, svg and all other files which we include using webpack loaders.
It's more faster than precompile tests with webpack (and also there are a lot of issues using webpack with jsdom together).
So we write something like this
This would be a great addition, I'm running into the same problem. I have to individually mock out css files in all tests. Was there a particular reason why only exact matches are supported now?
We use mockery also to mock requires on
css, svg
and all other files which we include using webpack loaders. It's more faster than precompile tests with webpack (and also there are a lot of issues using webpack with jsdom together). So we write something like thisbut we want this
if I create pull request allowing using regexp, do you accept it?