bpmn-visualization-js icon indicating copy to clipboard operation
bpmn-visualization-js copied to clipboard

[INFRA] Bump jest to v28

Open tbouffard opened this issue 2 years ago • 0 comments

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: #2112
  • ❓ jest-html-reporter: #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 storeReceivedOnFailure option
  • ✔️ 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 [UPDATE 2022-09-12] Jest v29 has been released on 2022-08-25. https://jestjs.io/blog/2022/08/25/jest-29 We must first bump to Jest v28 and then ensure that all jest extensions work with v29 prior upgrading again.

  • jest-html-reporter #2233

--> create a dedicated issue to use jest v29

tbouffard avatar May 31 '22 08:05 tbouffard