Fix jest config

This commit is contained in:
Will O'Beirne 2018-05-23 16:52:24 -04:00
parent 5be9cc94e4
commit 2d9d47dece
No known key found for this signature in database
GPG Key ID: 44C190DB5DEAF9F6
2 changed files with 2 additions and 0 deletions

View File

@ -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",

View File

@ -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"