Mock imported styles for jest (#628)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala authored and GitHub committed 2020-08-04 11:33:24 +03:00
1 parent d923053844
commit 65df0c810a
2 files changed
+4

No files matched your search

+1
View File
@@ -0,0 +1 @@
module.exports = {};
+3
View File
@@ -67,6 +67,9 @@
"testEnvironment": "node", "testEnvironment": "node",
"transform": { "transform": {
"^.+\\.tsx?$": "ts-jest" "^.+\\.tsx?$": "ts-jest"
},
"moduleNameMapper": {
"\\.(css|scss)$": "<rootDir>/__mocks__/styleMock.ts"
} }
}, },
"build": { "build": {