With WebPack you can import styles in your code like this: import './PageSpinner.styl';
But when you try to test this code with Mocha, your tests will be crashed with SyntaxError because engine tries to handle styles like JS code.
How can I test code like this with Mocha?
See Question&Answers more detail:os