Fix jest config
This commit is contained in:
parent
5be9cc94e4
commit
2d9d47dece
|
@ -7,6 +7,7 @@
|
||||||
"moduleDirectories": ["node_modules", "common"],
|
"moduleDirectories": ["node_modules", "common"],
|
||||||
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "worker.ts"],
|
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "worker.ts"],
|
||||||
"moduleNameMapper": {
|
"moduleNameMapper": {
|
||||||
|
"shared/(.*)": "<rootDir>/shared/$1",
|
||||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
||||||
"<rootDir>/jest_config/__mocks__/fileMock.ts",
|
"<rootDir>/jest_config/__mocks__/fileMock.ts",
|
||||||
"\\.(css|scss)$": "<rootDir>/jest_config/__mocks__/styleMock.ts",
|
"\\.(css|scss)$": "<rootDir>/jest_config/__mocks__/styleMock.ts",
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
"moduleDirectories": ["node_modules", "common"],
|
"moduleDirectories": ["node_modules", "common"],
|
||||||
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json"],
|
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json"],
|
||||||
"moduleNameMapper": {
|
"moduleNameMapper": {
|
||||||
|
"shared/(.*)": "<rootDir>/shared/$1",
|
||||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
||||||
"<rootDir>/jest_config/__mocks__/fileMock.ts",
|
"<rootDir>/jest_config/__mocks__/fileMock.ts",
|
||||||
"\\.(css|scss)$": "<rootDir>/jest_config/__mocks__/styleMock.ts"
|
"\\.(css|scss)$": "<rootDir>/jest_config/__mocks__/styleMock.ts"
|
||||||
|
|
Loading…
Reference in New Issue