Merge pull request #13559 from backstage/rugvip/jest29

cli: switch to Jest 29
This commit is contained in:
Patrik Oldsberg
2022-09-20 18:48:50 +02:00
committed by GitHub
53 changed files with 1332 additions and 796 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Updated fallback versions of dependencies in all templates.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Switched the Jest transform for YAML files to use a custom one available at `@backstage/cli/config/jestYamlTransform.js`.
+11
View File
@@ -0,0 +1,11 @@
---
'@backstage/cli': minor
---
**BREAKING**: Bumped `jest`, `jest-runtime`, and `jest-environment-jsdom` to v29. This is up from v27, so check out both the [v28](https://jestjs.io/docs/28.x/upgrading-to-jest28) and [v29](https://jestjs.io/docs/upgrading-to-jest29) (later [here](https://jestjs.io/docs/29.x/upgrading-to-jest29)) migration guides.
Particular changes that where encountered in the main Backstage repo are:
- The updated snapshot format.
- `jest.useFakeTimers('legacy')` is now `jest.useFakeTimers({ legacyFakeTimers: true })`.
- Error objects collected by `withLogCollector` from `@backstage/test-utils` are now objects with a `detail` property rather than a string.