title: Typescript: CSS modules will break compilation in Mocha
body: <p>I have a component using <a href="https://github.com/gajus/react-css-modules" rel="nofollow noreferrer">react-css-modules</a> and I run my tests with <a href="https://mochajs.org/" rel="nofollow noreferrer">mocha</a> and <a href="https://github.com/TypeStrong/ts-node" rel="nofollow noreferrer">ts-node</a>, which results in my test breaking because it can't find the module <code>foo.css</code>. How could I accomplish this?</p>
  
  <p>The specific command I run for my test is: <code>./node_modules/.bin/mocha --compilers ts:ts-node/register,tsx:ts-node/register -r tsconfig-paths/register test/unit/**/*.test.*</code></p>
  
  <p>I think my ideal solution would simply be to ignore <code>.css</code> imports and return a mock object, this way the <code>styleName</code> prop in my components would stay the same and asserting would be easy, but I'm open to any solution that will let me run my tests.</p>