Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
Extend default tsJestConfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Feb 9, 2019
1 parent 4629797 commit 5363c54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const { defaults: tsJestConfig } = require('ts-jest/presets');

module.exports = {
...tsJestConfig,
"preset": "react-native",
"transformIgnorePatterns": [
"node_modules/(?!(.*-)?react-(.*-)?native(-.*)?)"
Expand All @@ -17,7 +20,7 @@ module.exports = {
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
"\\.(ts|tsx)$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
// "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"testPathIgnorePatterns": [
"\\.snap$",
"<rootDir>/node_modules/"
Expand Down

0 comments on commit 5363c54

Please sign in to comment.