You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is known that Mocha has problems with css modules. In order to successfully run tests despite them we are left with two solutions.
To use the ignore-styles package with mocha and use it like so: mocha --require ignore-styles
To use compiler.js to ignore .css files and use it like so: mocha --compilers js:babel-core/register,css:noCss-compiler.js
However I could not find any way to do this with the meteor version of mocha. Is there any way to test a React component that uses css modules?? How could I achieve that?
Hello,
It is known that Mocha has problems with css modules. In order to successfully run tests despite them we are left with two solutions.
To use the
ignore-stylespackage with mocha and use it like so:mocha --require ignore-stylesTo use compiler.js to ignore .css files and use it like so:
mocha --compilers js:babel-core/register,css:noCss-compiler.jsHowever I could not find any way to do this with the meteor version of mocha. Is there any way to test a React component that uses css modules?? How could I achieve that?
My setup: