From f368ad72794e3fda54f58fd5f5287c95cb92e59b Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 20 Sep 2022 17:36:37 +0200 Subject: [PATCH] changesets: added changeset for jest 29 bump Signed-off-by: Patrik Oldsberg --- .changeset/sweet-insects-camp.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .changeset/sweet-insects-camp.md diff --git a/.changeset/sweet-insects-camp.md b/.changeset/sweet-insects-camp.md new file mode 100644 index 0000000000..4f91a196e8 --- /dev/null +++ b/.changeset/sweet-insects-camp.md @@ -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.