packages/cli: default to mocking style imports in tests

This commit is contained in:
Patrik Oldsberg
2020-04-23 17:54:26 +02:00
parent 0ed6b60277
commit 1020a93934
3 changed files with 11 additions and 0 deletions
+3
View File
@@ -26,6 +26,9 @@ if (fs.existsSync('jest.config.js')) {
} else {
const extraOptions = {
modulePaths: ['<rootDir>'],
moduleNameMapper: {
'\\.(css|less|scss|sss|styl)$': require.resolve('jest-css-modules'),
},
};
// Use src/setupTests.ts as the default location for configuring test env