Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Jest to v29 #412

Merged
merged 2 commits into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 6.7.0 - 2022-10-28

### Changed

- Updated Jest from 27 to 29.

### Steps to upgrade when using this package

- The new version of Jest might require some changes, check
https://jestjs.io/docs/28.x/upgrading-to-jest28 and
https://jestjs.io/docs/upgrading-to-jest29 for this.
- The new version of Jest simplifies typing mocks, so you might want to update
code. E.g.
`(someFunction as jest.MockedFunction<typeof someFunction>).mockReturnValue(42)`
can be simplified to `jest.mocked(someFunction).mockReturnValue(42)`.

## 6.6.4 - 2022-10-10

### Changed
Expand Down
1 change: 1 addition & 0 deletions config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ module.exports = (disabledMocks = []) => ({
transformIgnorePatterns: ['node_modules/(?!(pc-nrfconnect-shared)/)'],
setupFilesAfterEnv: [`${__dirname}/../test/setupTests.ts`],
snapshotSerializers: ['enzyme-to-json/serializer'],
resolver: `${__dirname}/../test/jestResolver.js`,
});