Skip to content

Conversation

@amotarao
Copy link

Summary

This PR adds @jest/globals as a devDependency to resolve TypeScript compilation errors during the build process.

Problem

When running npm run build, the TypeScript compiler fails with the following error:

error TS2688: Cannot find type definition file for '@jest/globals'.
  The file is in the program because:
    Entry point of type library '@jest/globals' specified in compilerOptions

This occurs because tsconfig.json specifies "types": ["@jest/globals"] in compilerOptions, but the package was not included in devDependencies.

Changes

  • Added @jest/globals@^29.7.0 to devDependencies (version aligned with jest@^29.7.0)

Verification

  • npm run build completes successfully
  • ✅ All tests pass with npm test (294 tests passed)

Notes

This is a minimal change that only adds the missing dependency without modifying any code or configuration.

Add @jest/globals as a devDependency with version matching jest (^29.7.0).
This provides proper type definitions for Jest globals used in test files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant