Skip to content

Instantly share code, notes, and snippets.

@vuk
Last active February 28, 2018 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vuk/4a017274b521400b8c87888a2f9da08c to your computer and use it in GitHub Desktop.
Save vuk/4a017274b521400b8c87888a2f9da08c to your computer and use it in GitHub Desktop.
Jest package.json config
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{ts}",
"!src/**/*.module.{ts}",
"!src/environments/**/*.{ts}",
"!**/node_modules/**",
"!src/app/main.ts",
"!src/pages/tabs/tabs.ts"
],
"testRegex": "(/__tests__/unit-test/.*|\\.(test))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
],
"globals": {
"ts-jest": {
"tsConfigFile": "./__tests__/tsconfig.json"
}
},
"moduleNameMapper": {
"^@app/env": "<rootDir>/src/environments/configurations/glb/dev",
"^@app/market": "<rootDir>/src/environments/markets/glb"
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment