diff --git a/e2e/jest.config.js b/e2e/jest.config.js index 0d31ba4477..98d846f5c5 100644 --- a/e2e/jest.config.js +++ b/e2e/jest.config.js @@ -2,5 +2,41 @@ module.exports = { "setupFilesAfterEnv": ["./init.js"], "testEnvironment": "node", "reporters": ["detox/runners/jest/streamlineReporter"], - "verbose": true + "verbose": true, + + globals: { + window: true, + "ts-jest": { + babelConfig: true, + diagnostics: { + warnOnly: true + } + } + }, + + moduleNameMapper: { + "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "/tests/assetsTransformer.js" + }, + + moduleFileExtensions: [ + "ts", + "tsx", + "js", + "jsx", + "json", + "node" + ], + + moduleDirectories: [ + "/../node_modules", + "/.." + ], + + testPathIgnorePatterns: [ + "/node_modules/.*" + ], + + transform: { + "^.+\\.tsx?$": "ts-jest" + } } diff --git a/tsconfig.json b/tsconfig.json index 114f4d0e50..6d2ed67376 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,6 +26,7 @@ "exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"], "include": [ "./src/**/*", - "./tests/**/*" + "./tests/**/*", + "./e2e/**/*" ] }