score:1

if you're not using webpack for your tests then you could use the ignore-styles module.

you may have to configure it if you plan to use it with css-modules-require-hook as it will also also ignore css files by default. e.g:

require('ignore-styles').register(['.svg'])

Related Query

More Query from same tag