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 776ff00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
21 changes: 7 additions & 14 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
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',
testMatch: [
'<rootDir>/scripts/__tests__/*.spec.ts',
],
collectCoverageFrom: [
'<rootDir>/scripts/__tests__/*.spec.ts',
],
coverageDirectory: './dist/jest/coverage',
};
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 776ff00

Please sign in to comment.