I use webpack to develop a React component. Here is a simple version of it:
\'use strict\'; require(\'./MyComponent.less\'); var React = require(\'react\')
We had a similar problem with CSS files. As you mentioned before jest-webpack solves this problem fine. You won't have to mock or use any module mappers either. For us we replaced our npm test command from jest to jest-webpack and it just worked.
jest
jest-webpack