-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Artur
committed
Feb 26, 2023
1 parent
f2ac2c9
commit daa095e
Showing
2 changed files
with
3 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters