Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur committed Feb 26, 2023
1 parent f2ac2c9 commit daa095e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
15 changes: 1 addition & 14 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
const esModules: string[] = [
'jest',
'react-native',
'@react-native',
];

module.exports = {
preset: 'react-native',
export default {
transform: {
'^.+\\.jsx$': 'babel-jest',
'^.+\\.tsx?$': 'ts-jest',
},
transformIgnorePatterns: [`node_modules/(?!${esModules.join('|')})`],
cacheDirectory: './dist/jest/cache',
coverageDirectory: './dist/jest/coverage',
testPathIgnorePatterns: [
'<rootDir>/node_modules',
'<rootDir>/dist',
],
};
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"include": [
"./lib/**/*.ts",
"./lib/**/*.tsx",
"./lib/**/*.json",
"./lib/**/*.json"
],
"exclude": [
"./node_modules",
"./babel.config.js",
"./jest.config.ts",
"./jest.config.ts"
]
}

0 comments on commit daa095e

Please sign in to comment.