From 8f997e03df53e84d87737a98c32029b6fa64f858 Mon Sep 17 00:00:00 2001 From: Seong Min Park <32555977+notoriousmango@users.noreply.github.com> Date: Sun, 1 Jan 2023 11:26:32 -0500 Subject: [PATCH] chore(website): UpgradingToJest29 admonitions (#13595) --- docs/UpgradingToJest29.md | 8 +++++++- website/versioned_docs/version-29.0/UpgradingToJest29.md | 8 +++++++- website/versioned_docs/version-29.1/UpgradingToJest29.md | 8 +++++++- website/versioned_docs/version-29.2/UpgradingToJest29.md | 8 +++++++- website/versioned_docs/version-29.3/UpgradingToJest29.md | 8 +++++++- 5 files changed, 35 insertions(+), 5 deletions(-) diff --git a/docs/UpgradingToJest29.md b/docs/UpgradingToJest29.md index b4cb1f1ec506..49caf1de4736 100644 --- a/docs/UpgradingToJest29.md +++ b/docs/UpgradingToJest29.md @@ -36,7 +36,13 @@ If you want to keep the old behavior, you can set the `snapshotFormat` property ## JSDOM upgrade -`jest-environment-jsdom` has upgraded `jsdom` from v19 to v20. Note that _if_ you use `jest-environment-jsdom`, the minimum TypeScript version is set to `4.5`. +`jest-environment-jsdom` has upgraded `jsdom` from v19 to v20. + +:::info + +If you use `jest-environment-jsdom`, the minimum TypeScript version is set to `4.5`. + +::: Notably, `jsdom@20` includes support for `crypto.getRandomValues()`, which means packages like `uuid` and `nanoid`, which doesn't work properly in Jest@28, can work without extra polyfills. diff --git a/website/versioned_docs/version-29.0/UpgradingToJest29.md b/website/versioned_docs/version-29.0/UpgradingToJest29.md index b4cb1f1ec506..49caf1de4736 100644 --- a/website/versioned_docs/version-29.0/UpgradingToJest29.md +++ b/website/versioned_docs/version-29.0/UpgradingToJest29.md @@ -36,7 +36,13 @@ If you want to keep the old behavior, you can set the `snapshotFormat` property ## JSDOM upgrade -`jest-environment-jsdom` has upgraded `jsdom` from v19 to v20. Note that _if_ you use `jest-environment-jsdom`, the minimum TypeScript version is set to `4.5`. +`jest-environment-jsdom` has upgraded `jsdom` from v19 to v20. + +:::info + +If you use `jest-environment-jsdom`, the minimum TypeScript version is set to `4.5`. + +::: Notably, `jsdom@20` includes support for `crypto.getRandomValues()`, which means packages like `uuid` and `nanoid`, which doesn't work properly in Jest@28, can work without extra polyfills. diff --git a/website/versioned_docs/version-29.1/UpgradingToJest29.md b/website/versioned_docs/version-29.1/UpgradingToJest29.md index b4cb1f1ec506..49caf1de4736 100644 --- a/website/versioned_docs/version-29.1/UpgradingToJest29.md +++ b/website/versioned_docs/version-29.1/UpgradingToJest29.md @@ -36,7 +36,13 @@ If you want to keep the old behavior, you can set the `snapshotFormat` property ## JSDOM upgrade -`jest-environment-jsdom` has upgraded `jsdom` from v19 to v20. Note that _if_ you use `jest-environment-jsdom`, the minimum TypeScript version is set to `4.5`. +`jest-environment-jsdom` has upgraded `jsdom` from v19 to v20. + +:::info + +If you use `jest-environment-jsdom`, the minimum TypeScript version is set to `4.5`. + +::: Notably, `jsdom@20` includes support for `crypto.getRandomValues()`, which means packages like `uuid` and `nanoid`, which doesn't work properly in Jest@28, can work without extra polyfills. diff --git a/website/versioned_docs/version-29.2/UpgradingToJest29.md b/website/versioned_docs/version-29.2/UpgradingToJest29.md index b4cb1f1ec506..49caf1de4736 100644 --- a/website/versioned_docs/version-29.2/UpgradingToJest29.md +++ b/website/versioned_docs/version-29.2/UpgradingToJest29.md @@ -36,7 +36,13 @@ If you want to keep the old behavior, you can set the `snapshotFormat` property ## JSDOM upgrade -`jest-environment-jsdom` has upgraded `jsdom` from v19 to v20. Note that _if_ you use `jest-environment-jsdom`, the minimum TypeScript version is set to `4.5`. +`jest-environment-jsdom` has upgraded `jsdom` from v19 to v20. + +:::info + +If you use `jest-environment-jsdom`, the minimum TypeScript version is set to `4.5`. + +::: Notably, `jsdom@20` includes support for `crypto.getRandomValues()`, which means packages like `uuid` and `nanoid`, which doesn't work properly in Jest@28, can work without extra polyfills. diff --git a/website/versioned_docs/version-29.3/UpgradingToJest29.md b/website/versioned_docs/version-29.3/UpgradingToJest29.md index b4cb1f1ec506..49caf1de4736 100644 --- a/website/versioned_docs/version-29.3/UpgradingToJest29.md +++ b/website/versioned_docs/version-29.3/UpgradingToJest29.md @@ -36,7 +36,13 @@ If you want to keep the old behavior, you can set the `snapshotFormat` property ## JSDOM upgrade -`jest-environment-jsdom` has upgraded `jsdom` from v19 to v20. Note that _if_ you use `jest-environment-jsdom`, the minimum TypeScript version is set to `4.5`. +`jest-environment-jsdom` has upgraded `jsdom` from v19 to v20. + +:::info + +If you use `jest-environment-jsdom`, the minimum TypeScript version is set to `4.5`. + +::: Notably, `jsdom@20` includes support for `crypto.getRandomValues()`, which means packages like `uuid` and `nanoid`, which doesn't work properly in Jest@28, can work without extra polyfills.