Skip to content

Commit daa095e

Browse files
author
Artur
committed
fix tests
1 parent f2ac2c9 commit daa095e

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

jest.config.ts

+1-14
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
const esModules: string[] = [
2-
'jest',
3-
'react-native',
4-
'@react-native',
5-
];
6-
7-
module.exports = {
8-
preset: 'react-native',
1+
export default {
92
transform: {
103
'^.+\\.jsx$': 'babel-jest',
114
'^.+\\.tsx?$': 'ts-jest',
125
},
13-
transformIgnorePatterns: [`node_modules/(?!${esModules.join('|')})`],
14-
cacheDirectory: './dist/jest/cache',
156
coverageDirectory: './dist/jest/coverage',
16-
testPathIgnorePatterns: [
17-
'<rootDir>/node_modules',
18-
'<rootDir>/dist',
19-
],
207
};

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
"include": [
2323
"./lib/**/*.ts",
2424
"./lib/**/*.tsx",
25-
"./lib/**/*.json",
25+
"./lib/**/*.json"
2626
],
2727
"exclude": [
2828
"./node_modules",
2929
"./babel.config.js",
30-
"./jest.config.ts",
30+
"./jest.config.ts"
3131
]
3232
}

0 commit comments

Comments
 (0)