mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Mock imported styles for jest
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
bac6fbaaf1
commit
6bfe6f0ff2
1
__mocks__/styleMock.ts
Normal file
1
__mocks__/styleMock.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
module.exports = {};
|
||||||
@ -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": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user