From f586bb86b3ed22090bf511470c49f1e65bd14653 Mon Sep 17 00:00:00 2001 From: Andrew den Hertog Date: Wed, 7 Oct 2026 20:04:02 +1000 Subject: [PATCH] ignore claude agent worktrees in jest, eslint and prettier Co-Authored-By: Claude Opus 5.5 (1M context) --- .gitignore | 3 +++ eslint.config.mjs | 3 ++- jest.config.ts | 9 ++++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f860c867..b7ecfe95 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,9 @@ docs/api/ docs/.vitepress/cache/ docs/.vitepress/dist/ +# Claude Code agent worktrees, each a full checkout of the repo +.claude/worktrees/ + #### joe made this: http://goel.io/joe #####=== Archives ===##### diff --git a/eslint.config.mjs b/eslint.config.mjs index bc6c13a1..c8b6386a 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -11,7 +11,8 @@ export default tseslint.config( '**/node_modules/**', '**/coverage/**', 'docs/api/**', - 'docs/.vitepress/cache/**' + 'docs/.vitepress/cache/**', + '.claude/worktrees/**' ] }, eslint.configs.recommended, diff --git a/jest.config.ts b/jest.config.ts index 9a7de494..22144a42 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -17,7 +17,14 @@ const config: Config = { testEnvironment: 'node', // Generated files import with a .js extension, which resolves to the .ts source moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' }, - testPathIgnorePatterns: ['node_modules/', 'dist/', '/docs/'], + // Agent worktrees in .claude/worktrees hold copies of every package + modulePathIgnorePatterns: ['/.claude/'], + testPathIgnorePatterns: [ + 'node_modules/', + 'dist/', + '/docs/', + '/.claude/' + ], transform: { '^.+\\.tsx?$': [ 'ts-jest',