jest-expo 53.0.8 → 53.0.10

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.
@@ -1,13 +1,14 @@
1
1
  const path = require('path');
2
2
  const canariesDir = path.join(require.resolve('@expo/cli/package.json'), '../static/canary-full');
3
3
 
4
+ /** @type {import('jest-resolve').SyncResolver} */
4
5
  function customResolver(request, options) {
5
6
  // TODO: Remove this when we have React 19 in the expo/expo monorepo.
6
7
  if (
7
8
  // Change the node modules path for react and react-dom to use the vendor in Expo CLI.
8
9
  /^(react|react\/.*|react-dom|react-dom\/.*)$/.test(request)
9
10
  ) {
10
- options.moduleDirectory = [canariesDir];
11
+ options.basedir = canariesDir;
11
12
  }
12
13
 
13
14
  // Fall back to Jest's default resolver
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-expo",
3
- "version": "53.0.8",
3
+ "version": "53.0.10",
4
4
  "description": "A Jest preset to painlessly test your Expo / React Native apps.",
5
5
  "license": "MIT",
6
6
  "main": "src/index.js",
@@ -37,8 +37,8 @@
37
37
  "preset": "jest-expo/universal"
38
38
  },
39
39
  "dependencies": {
40
- "@expo/config": "~11.0.11",
41
- "@expo/json-file": "^9.1.4",
40
+ "@expo/config": "~11.0.13",
41
+ "@expo/json-file": "^9.1.5",
42
42
  "@jest/create-cache-key-function": "^29.2.1",
43
43
  "@jest/globals": "^29.2.1",
44
44
  "babel-jest": "^29.2.1",
@@ -58,5 +58,5 @@
58
58
  "expo": "*",
59
59
  "react-native": "*"
60
60
  },
61
- "gitHead": "9731a6191dcab84e9c3a24492bbe70c56d6f5cc3"
61
+ "gitHead": "85192ee6f5e76e0e81f91151c9c8aaca43c22c65"
62
62
  }