Skip to content

Commit

Permalink
e2e: update jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
mnzaki committed Aug 20, 2019
1 parent f1c847a commit 858f13f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
38 changes: 37 additions & 1 deletion e2e/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)$": "<rootDir>/tests/assetsTransformer.js"
},

moduleFileExtensions: [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],

moduleDirectories: [
"<rootDir>/../node_modules",
"<rootDir>/.."
],

testPathIgnorePatterns: [
"/node_modules/.*"
],

transform: {
"^.+\\.tsx?$": "ts-jest"
}
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"],
"include": [
"./src/**/*",
"./tests/**/*"
"./tests/**/*",
"./e2e/**/*"
]
}

0 comments on commit 858f13f

Please sign in to comment.