diff --git a/docs/TutorialReactNative.md b/docs/TutorialReactNative.md index 4cd9a78a9a57..70a6cbaf2cce 100644 --- a/docs/TutorialReactNative.md +++ b/docs/TutorialReactNative.md @@ -143,9 +143,7 @@ By default the `jest-react-native` preset only processes the project's own sourc ```json { - "transformIgnorePatterns": [ - "node_modules/(?!(react-native|my-project|react-native-button)/)" - ] + "transformIgnorePatterns": ["node_modules/(?!((@)?react-native|my-project)/)"] } ``` diff --git a/website/versioned_docs/version-29.4/TutorialReactNative.md b/website/versioned_docs/version-29.4/TutorialReactNative.md index 4cd9a78a9a57..70a6cbaf2cce 100644 --- a/website/versioned_docs/version-29.4/TutorialReactNative.md +++ b/website/versioned_docs/version-29.4/TutorialReactNative.md @@ -143,9 +143,7 @@ By default the `jest-react-native` preset only processes the project's own sourc ```json { - "transformIgnorePatterns": [ - "node_modules/(?!(react-native|my-project|react-native-button)/)" - ] + "transformIgnorePatterns": ["node_modules/(?!((@)?react-native|my-project)/)"] } ``` diff --git a/website/versioned_docs/version-29.5/TutorialReactNative.md b/website/versioned_docs/version-29.5/TutorialReactNative.md index 4cd9a78a9a57..70a6cbaf2cce 100644 --- a/website/versioned_docs/version-29.5/TutorialReactNative.md +++ b/website/versioned_docs/version-29.5/TutorialReactNative.md @@ -143,9 +143,7 @@ By default the `jest-react-native` preset only processes the project's own sourc ```json { - "transformIgnorePatterns": [ - "node_modules/(?!(react-native|my-project|react-native-button)/)" - ] + "transformIgnorePatterns": ["node_modules/(?!((@)?react-native|my-project)/)"] } ``` diff --git a/website/versioned_docs/version-29.6/TutorialReactNative.md b/website/versioned_docs/version-29.6/TutorialReactNative.md index 4cd9a78a9a57..70a6cbaf2cce 100644 --- a/website/versioned_docs/version-29.6/TutorialReactNative.md +++ b/website/versioned_docs/version-29.6/TutorialReactNative.md @@ -143,9 +143,7 @@ By default the `jest-react-native` preset only processes the project's own sourc ```json { - "transformIgnorePatterns": [ - "node_modules/(?!(react-native|my-project|react-native-button)/)" - ] + "transformIgnorePatterns": ["node_modules/(?!((@)?react-native|my-project)/)"] } ``` diff --git a/website/versioned_docs/version-29.7/TutorialReactNative.md b/website/versioned_docs/version-29.7/TutorialReactNative.md index 4cd9a78a9a57..70a6cbaf2cce 100644 --- a/website/versioned_docs/version-29.7/TutorialReactNative.md +++ b/website/versioned_docs/version-29.7/TutorialReactNative.md @@ -143,9 +143,7 @@ By default the `jest-react-native` preset only processes the project's own sourc ```json { - "transformIgnorePatterns": [ - "node_modules/(?!(react-native|my-project|react-native-button)/)" - ] + "transformIgnorePatterns": ["node_modules/(?!((@)?react-native|my-project)/)"] } ```