Skip to content

Commit

Permalink
fix(test): shim .css and .scss import within jest environment (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
artkravchenko committed Aug 19, 2018
1 parent f7f3d93 commit 05d5450
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/shared/__mocks__/style.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
3 changes: 3 additions & 0 deletions packages/web-ssr-server/resources/jest/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module.exports = {
collectCoverage: true,
coverageDirectory: './resources/jest/coverage',
moduleNameMapper: {
'\\.(css|scss)$': '<rootDir>/../shared/__mocks__/style.js',
},
rootDir: '../../',
setupTestFrameworkScriptFile: './resources/jest/init.js',
transform: {
Expand Down

0 comments on commit 05d5450

Please sign in to comment.