diff --git a/cspell.json b/cspell.json index 896c40e85388..e7d0d02593dc 100644 --- a/cspell.json +++ b/cspell.json @@ -847,6 +847,7 @@ "workshopping", "workspacename", "worktree", + "worktrees", "writeitdown", "xcconfig", "xcodeproj", diff --git a/jest.config.js b/jest.config.js index 1e13b56d427d..2f7c9a810b21 100644 --- a/jest.config.js +++ b/jest.config.js @@ -19,6 +19,10 @@ module.exports = { '/node_modules/@expensify/react-native-live-markdown/lib/commonjs/parseExpensiMark.js', ], testPathIgnorePatterns: ['/node_modules'], + // .worktrees/ holds parallel git worktrees a developer may check out locally. + // Each one carries its own modules/hybrid-app/package.json, which trips + // jest-haste-map's "duplicate package name" assertion. Skip them entirely. + modulePathIgnorePatterns: ['/.worktrees/'], globals: { __DEV__: true, WebSocket: {},