Skip to content

Commit

Permalink
Merge pull request #412 from NordicSemiconductor/update/jest
Browse files Browse the repository at this point in the history
Update Jest to v29
  • Loading branch information
datenreisender committed Oct 28, 2022
2 parents f716c73 + 293691b commit 1c0ad3d
Show file tree
Hide file tree
Showing 6 changed files with 1,398 additions and 1,107 deletions.
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`,
});

0 comments on commit 1c0ad3d

Please sign in to comment.