Skip to content

Commit

Permalink
chore(e2e): update jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
mnzaki committed Sep 12, 2019
1 parent fcb1c5f commit aa6e4d5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
37 changes: 36 additions & 1 deletion e2e/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,40 @@ module.exports = {
"setupFilesAfterEnv": ["./init.js"],
"testEnvironment": "node",
"reporters": ["detox/runners/jest/streamlineReporter"],
"verbose": true
"verbose": true,

globals: {
"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 @@ -27,6 +27,7 @@
"include": [
"./src/**/*",
"./tests/**/*",
"./bin/**/*"
"./bin/**/*",
"./e2e/**/*"
]
}

0 comments on commit aa6e4d5

Please sign in to comment.