diff --git a/packages/shared/__mocks__/style.js b/packages/shared/__mocks__/style.js new file mode 100644 index 0000000..f053ebf --- /dev/null +++ b/packages/shared/__mocks__/style.js @@ -0,0 +1 @@ +module.exports = {}; diff --git a/packages/web-ssr-server/resources/jest/jest.config.js b/packages/web-ssr-server/resources/jest/jest.config.js index 4da4445..099c79e 100644 --- a/packages/web-ssr-server/resources/jest/jest.config.js +++ b/packages/web-ssr-server/resources/jest/jest.config.js @@ -1,6 +1,9 @@ module.exports = { collectCoverage: true, coverageDirectory: './resources/jest/coverage', + moduleNameMapper: { + '\\.(css|scss)$': '/../shared/__mocks__/style.js', + }, rootDir: '../../', setupTestFrameworkScriptFile: './resources/jest/init.js', transform: {