Skip to content

Commit 55f36bb

Browse files
arbrandesclaude
andcommitted
fix: add @types/jest so ForkTsCheckerWebpackPlugin sees jest globals
The tsconfig declares "types": ["jest"] but @types/jest was not installed, so TypeScript treated jest as a namespace rather than a value. Adding the matching type definitions lets the webpack type-checker process test files without errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4820520 commit 55f36bb

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

package-lock.json

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"@testing-library/jest-dom": "^6.6.3",
5959
"@testing-library/react": "^16.3.0",
6060
"@testing-library/user-event": "^14.6.1",
61+
"@types/jest": "^29.5.14",
6162
"identity-obj-proxy": "^3.0.0",
6263
"jest": "^29.7.0",
6364
"jest-environment-jsdom": "^29.7.0",

0 commit comments

Comments
 (0)