-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Labels
choreBuild, CI/CD or repository tasks (issues/PR maintenance, environments, ...)Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)
Milestone
Description
Version 28 introduces some breaking changes. See https://jestjs.io/blog/2022/04/25/jest-28
Dependabot cannot update jest because the versions of the jest extensions we are currently using require jest 27. So we need to upgrade the whole jest ecosystem at the same time.
Checking if jest 27.5.1 needs updating
Latest version is 28.1.0
Requirements to unlock update_not_possible
Requirements update strategy bump_versions
No update possible for jest 27.5.1
Extensions that must support jest 28
- ❓ @types/jest --> check if it is still needed, see https://jestjs.io/blog/2022/04/25/jest-28#typescript. Remember that we use ts-jest to have type checking (https://jestjs.io/blog/2019/01/25/jest-24-refreshing-polished-typescript-friendly#typescript-support)
- ✔️ @types/jest-image-snapshot: types only, not linked to jest API
- ✔️ jest-extended: [INFRA] dev - Bump jest-extended from 2.0.0 to 3.0.0 #2112
- ✔️ jest-html-reporter: [INFRA] dev - Bump jest-html-reporter from 3.5.0 to 3.6.0 #2122
- ✔️ jest-html-reporters
- ✔️ jest-image-snapshot: supported with v5.0.0. Notice that v5.1.0 allow to store the actual image in case of diff. This will let us remove our custom configuration to manage it. See the new
storeReceivedOnFailureoption - ✔️ jest-playwright-preset: https://github.com/playwright-community/jest-playwright/releases/tag/v2.0.0
- ❓ jest-sonar
- ✔️ ts-jest: https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md#2800-2022-05-02
Some breaking changes that will impact the configuration
See https://jestjs.io/blog/2022/04/25/jest-28, at least
- jsdom environment is now managed as a separate dependency
Other information
Once implemented, we will be able to bump Jest to v29: #2317
Metadata
Metadata
Assignees
Labels
choreBuild, CI/CD or repository tasks (issues/PR maintenance, environments, ...)Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)