From e5154c91da00121ccc1b0fe0954799ed3a2d5ead Mon Sep 17 00:00:00 2001 From: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Date: Wed, 17 Aug 2022 10:50:01 +0300 Subject: [PATCH] Jest Preset: Improve `is-plain-obj` transformation ignore (#43271) * Jest Preset: Improve is-plain-obj transformation ignore * Add changelogs --- packages/jest-preset-default/CHANGELOG.md | 4 ++++ packages/jest-preset-default/jest-preset.js | 2 +- packages/scripts/CHANGELOG.md | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/jest-preset-default/CHANGELOG.md b/packages/jest-preset-default/CHANGELOG.md index 50da0d1120724..de7850ac29325 100644 --- a/packages/jest-preset-default/CHANGELOG.md +++ b/packages/jest-preset-default/CHANGELOG.md @@ -6,6 +6,10 @@ - Increase the minimum Node.js version to 14 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)). +### Bug Fix + +- Jest Preset: Improve `is-plain-obj` transformation ignore ([#43271](https://github.com/WordPress/gutenberg/pull/43271)). + ## 8.5.1 (2022-08-12) ### Bug Fix diff --git a/packages/jest-preset-default/jest-preset.js b/packages/jest-preset-default/jest-preset.js index 41a018117f105..8ae974b500117 100644 --- a/packages/jest-preset-default/jest-preset.js +++ b/packages/jest-preset-default/jest-preset.js @@ -29,5 +29,5 @@ module.exports = { transform: { '\\.[jt]sx?$': require.resolve( 'babel-jest' ), }, - transformIgnorePatterns: [ 'node_modules/(?!(is-plain-obj))' ], + transformIgnorePatterns: [ 'node_modules/(?:(?!is-plain-obj/).)*$' ], }; diff --git a/packages/scripts/CHANGELOG.md b/packages/scripts/CHANGELOG.md index c5c7c0c212df1..1a7e63657ac80 100644 --- a/packages/scripts/CHANGELOG.md +++ b/packages/scripts/CHANGELOG.md @@ -7,6 +7,10 @@ - Increase the minimum Node.js version to 14 and minimum npm version to 6.14.4 ([#43141](https://github.com/WordPress/gutenberg/pull/43141)). - The bundled `@wordpress/eslint-plugin` package got updated to the new major version and the default linting for Jest unit tests is now handled in the default config in this package ([#43272](https://github.com/WordPress/gutenberg/pull/43272)). +### Bug Fix + +- Jest Preset: Improve `is-plain-obj` transformation ignore ([#43271](https://github.com/WordPress/gutenberg/pull/43271)). + ## 23.7.1 (2022-08-12) ### Bug Fix