Skip to content

Commit 74acd58

Browse files
yjosemdjastrzebski
andauthored
docs: add config example for pnpm (#1400)
* Add config example for pnpm While using `pnpm` as package manger `transformIgnorePatterns` should refernce to package inside `.pnpm` folder. [source](https://jestjs.io/docs/configuration#transformignorepatterns-arraystring) * Update website/docs/ReactNavigation.md --------- Co-authored-by: Maciej Jastrzebski <[email protected]>
1 parent 9100c21 commit 74acd58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

website/docs/ReactNavigation.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ module.exports = {
140140
setupFiles: ['./node_modules/react-native-gesture-handler/jestSetup.js'],
141141
transformIgnorePatterns: [
142142
'node_modules/(?!(jest-)?@?react-native|@react-native-community|@react-navigation)',
143+
144+
// For pnpm you need to use inlcude `(?!(?:.pnpm/)?` part like this:
145+
// 'node_modules/(?!(?:.pnpm/)?((jest-)?@?react-native|@react-native-community|@react-navigation))',
143146
],
144147
};
145148
```

0 commit comments

Comments
 (0)