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.