diff --git a/jest_config/jest.config.json b/jest_config/jest.config.json index 1cfa2b5f..8c5d26d3 100644 --- a/jest_config/jest.config.json +++ b/jest_config/jest.config.json @@ -7,6 +7,7 @@ "moduleDirectories": ["node_modules", "common"], "moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "worker.ts"], "moduleNameMapper": { + "shared/(.*)": "/shared/$1", "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "/jest_config/__mocks__/fileMock.ts", "\\.(css|scss)$": "/jest_config/__mocks__/styleMock.ts", diff --git a/jest_config/jest.int.config.json b/jest_config/jest.int.config.json index 50c50180..ae310294 100644 --- a/jest_config/jest.int.config.json +++ b/jest_config/jest.int.config.json @@ -7,6 +7,7 @@ "moduleDirectories": ["node_modules", "common"], "moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json"], "moduleNameMapper": { + "shared/(.*)": "/shared/$1", "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "/jest_config/__mocks__/fileMock.ts", "\\.(css|scss)$": "/jest_config/__mocks__/styleMock.ts"