Skip to content

Commit 46964d4

Browse files
authored
docs: update transformIgnorePatterns example for React Native (#15560)
1 parent cd12d58 commit 46964d4

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

docs/TutorialReactNative.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ By default the `jest-react-native` preset only processes the project's own sourc
143143

144144
```json
145145
{
146-
"transformIgnorePatterns": [
147-
"node_modules/(?!(react-native|my-project|react-native-button)/)"
148-
]
146+
"transformIgnorePatterns": ["node_modules/(?!((@)?react-native|my-project)/)"]
149147
}
150148
```
151149

website/versioned_docs/version-29.4/TutorialReactNative.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ By default the `jest-react-native` preset only processes the project's own sourc
143143

144144
```json
145145
{
146-
"transformIgnorePatterns": [
147-
"node_modules/(?!(react-native|my-project|react-native-button)/)"
148-
]
146+
"transformIgnorePatterns": ["node_modules/(?!((@)?react-native|my-project)/)"]
149147
}
150148
```
151149

website/versioned_docs/version-29.5/TutorialReactNative.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ By default the `jest-react-native` preset only processes the project's own sourc
143143

144144
```json
145145
{
146-
"transformIgnorePatterns": [
147-
"node_modules/(?!(react-native|my-project|react-native-button)/)"
148-
]
146+
"transformIgnorePatterns": ["node_modules/(?!((@)?react-native|my-project)/)"]
149147
}
150148
```
151149

website/versioned_docs/version-29.6/TutorialReactNative.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ By default the `jest-react-native` preset only processes the project's own sourc
143143

144144
```json
145145
{
146-
"transformIgnorePatterns": [
147-
"node_modules/(?!(react-native|my-project|react-native-button)/)"
148-
]
146+
"transformIgnorePatterns": ["node_modules/(?!((@)?react-native|my-project)/)"]
149147
}
150148
```
151149

website/versioned_docs/version-29.7/TutorialReactNative.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ By default the `jest-react-native` preset only processes the project's own sourc
143143

144144
```json
145145
{
146-
"transformIgnorePatterns": [
147-
"node_modules/(?!(react-native|my-project|react-native-button)/)"
148-
]
146+
"transformIgnorePatterns": ["node_modules/(?!((@)?react-native|my-project)/)"]
149147
}
150148
```
151149

0 commit comments

Comments
 (0)