jest-expo 58.0.11 → 58.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-expo",
3
- "version": "58.0.11",
3
+ "version": "58.0.12",
4
4
  "description": "A Jest preset to painlessly test your Expo / React Native apps.",
5
5
  "homepage": "https://github.com/expo/expo/tree/main/packages/jest-expo",
6
6
  "bugs": {
@@ -216,6 +216,10 @@ function attemptLookup(moduleName) {
216
216
  return true;
217
217
  }
218
218
 
219
+ // Jest's own files never call requireNativeModule, and reading them dominates the lookup cost.
220
+ if (/[\\/]node_modules[\\/](?:@jest[\\/]|jest-[^\\/]+[\\/])/.test(line.fileName)) {
221
+ return false;
222
+ }
219
223
  if (!fs.existsSync(line.fileName)) {
220
224
  return false;
221
225
  }