Skip to content

Conversation

@promer94
Copy link
Collaborator

Note: i did not upgrade 'jest-environment-jsdom' because it does not allow us to spy on window method anymore.
Screenshot 2025-11-29 at 11 59 56

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@socket-security
Copy link

@promer94 promer94 requested a review from Copilot December 2, 2025 05:51
Copilot finished reviewing on behalf of promer94 December 2, 2025 05:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades Jest from version 29.7.0 to 30.2.0 and replaces deprecated Jest matcher APIs with their current equivalents. The changes also include upgrading related testing libraries and converting Jest configuration files to ES modules format.

Key changes:

  • Upgraded Jest and testing libraries to latest versions
  • Replaced deprecated Jest API methods (e.g., toBeCalled()toHaveBeenCalled())
  • Converted Jest config files from CommonJS to ES modules
  • Updated test assertions across all test files

Reviewed changes

Copilot reviewed 17 out of 20 changed files in this pull request and generated no comments.

Show a summary per file
File Description
package.json Upgraded Jest from 29.7.0 to 30.2.0, @testing-library/jest-dom from ^5.16.5 to ^6.9.1, @testing-library/react from ^14.2.1 to ^16.3.0, @types/jest from ^29.5.2 to ^30.0.0, and @edge-runtime/jest-environment from ^3.0.4 to ^4.0.0. Added @testing-library/dom ^10.4.1.
pnpm-lock.yaml Updated lock file with all dependency changes and their transitive dependencies
jest.config.js Converted from CommonJS module.exports to ES module export default, changed transform array syntax to string, removed trailing commas
jest.config.build.js Converted from CommonJS require/module.exports to ES module import/export syntax
tsconfig.json Added jest.config.js to include array for TypeScript checking
test/*.test.tsx Replaced deprecated Jest matchers: toBeCalled() → toHaveBeenCalled(), toBeCalledTimes() → toHaveBeenCalledTimes(), toReturnWith() → toHaveReturnedWith(), nthCalledWith() → toHaveBeenNthCalledWith(). Minor formatting improvements (semicolons, line breaks).
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants