Skip to content

Commit d95ed13

Browse files
authored
chore: enable jest cache and broaden worktree ignore pattern (#7156)
1 parent 4dfdacc commit d95ed13

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,5 @@ e2e/e2e_account.ts
8686
*.p8
8787
.claude/
8888
.worktrees/
89-
.omc/
89+
.omc/
90+
.jest-cache/

jest.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
module.exports = {
2-
testPathIgnorePatterns: ['e2e', 'node_modules', '.worktrees/'],
2+
modulePathIgnorePatterns: ['<rootDir>/.*worktrees/'],
3+
testPathIgnorePatterns: ['e2e', 'node_modules', '<rootDir>/.*worktrees/'],
34
transformIgnorePatterns: [
45
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|@rocket.chat/ui-kit)'
56
],
67
preset: './jest.preset.js',
8+
cacheDirectory: '<rootDir>/.jest-cache',
79
coverageDirectory: './coverage/',
810
collectCoverage: false,
911
moduleNameMapper: {

0 commit comments

Comments
 (0)