Upgrade dependency @types/jest from ^29.0.0 to ^30.0.0 | Hypermod.io#258
Open
github-actions[bot] wants to merge 1 commit intomainfrom
Open
Upgrade dependency @types/jest from ^29.0.0 to ^30.0.0 | Hypermod.io#258github-actions[bot] wants to merge 1 commit intomainfrom
github-actions[bot] wants to merge 1 commit intomainfrom
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated update for @types/jest to version 30.0.0.
This guide outlines the key changes and steps necessary to upgrade @types/jest from version 29.0.0 to 30.0.0, focusing on breaking changes and improvements.
Description
Jest 30 introduces significant changes, particularly in matchers, TypeScript typings, and CLI configurations. The removal of alias matcher functions and improvements in type inference for CalledWith family matchers are key highlights. The upgrade requires attention to TypeScript errors and changes in configuration flags.
Workflow
Step 1
Update alias matcher names to canonical matchers.
Step 2
Ensure Node.js version is compatible (>=18.x) and update TypeScript to >=5.4.
Step 3
Update your Jest configuration to reflect file extension and pattern changes.
Step 4
Rename CLI flag --testPathPattern to --testPathPatterns.
Step 5
Replace removed jest.genMockFromModule with jest.createMockFromModule.
Potential Issues
Other Dependencies
Dependencies potentially affected by the upgrade:
References
Workflow:
PR created automatically by the Hypermod Dependency Bot configured by: Daniel Del Core.
Deployment created using Hypermod.io 💫
documentation | support