Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.31.1",
"eslint": "^7.5.0",
"jest": "^26.6.3",
"jest": "^27.0.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Upgrading Jest to v27 is a major version bump with breaking changes that will likely break your test suite with the current configuration.

  • ts-jest Incompatibility: Your current ts-jest version (^26.4.4 on line 45) is not compatible with Jest 27. You must also upgrade ts-jest to a compatible version (e.g., ^27.0.0) in this package.json file.

  • testEnvironment Change: Jest 27 changed the default testEnvironment from 'jsdom' to 'node'. Given that your Jest configuration (jest.config.js) includes tsx and jsx file extensions, your tests probably rely on a browser environment. You should explicitly set testEnvironment: 'jsdom' in your jest.config.js to avoid test failures.

Example for jest.config.js:

module.exports = {
    testEnvironment: 'jsdom',
    // ... other config
};

Without these changes, this upgrade is incomplete and will likely fail your CI build.

"standard-version": "^9.1.0",
"ts-jest": "^26.4.4",
Copy link

Copilot AI Jan 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrading jest to version 27.0.0 requires a corresponding upgrade of ts-jest. The current version ts-jest ^26.4.4 is incompatible with jest 27.x. According to the ts-jest compatibility matrix, jest 27.x requires ts-jest version 27.x or higher. This will cause the test suite to fail when dependencies are installed.

Suggested change
"ts-jest": "^26.4.4",
"ts-jest": "^27.0.0",

Copilot uses AI. Check for mistakes.
"tslib": "^2.0.3",
Expand Down
Loading