jest-expo 50.0.0-alpha.4 → 50.0.0-canary-20231125-d600e44

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/jest-preset.js CHANGED
@@ -7,6 +7,13 @@ const jestPreset = cloneDeep(require('react-native/jest-preset'));
7
7
 
8
8
  const { withTypescriptMapping } = require('./src/preset/withTypescriptMapping');
9
9
 
10
+ // Emulate the alias behavior of Expo's Metro resolver.
11
+ jestPreset.moduleNameMapper = {
12
+ ...(jestPreset.moduleNameMapper || {}),
13
+ '^react-native-vector-icons$': '@expo/vector-icons',
14
+ '^react-native-vector-icons/(.*)': '@expo/vector-icons/$1',
15
+ };
16
+
10
17
  // transform
11
18
  if (!jestPreset.transform) {
12
19
  jestPreset.transform = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-expo",
3
- "version": "50.0.0-alpha.4",
3
+ "version": "50.0.0-canary-20231125-d600e44",
4
4
  "description": "A Jest preset to painlessly test your Expo / React Native apps.",
5
5
  "license": "MIT",
6
6
  "main": "src",
@@ -31,8 +31,8 @@
31
31
  "preset": "jest-expo/universal"
32
32
  },
33
33
  "dependencies": {
34
- "@expo/config": "~8.4.0",
35
- "@expo/json-file": "^8.2.37",
34
+ "@expo/config": "0.0.1-canary-20231125-d600e44",
35
+ "@expo/json-file": "0.0.1-canary-20231125-d600e44",
36
36
  "@jest/create-cache-key-function": "^29.2.1",
37
37
  "babel-jest": "^29.2.1",
38
38
  "find-up": "^5.0.0",
@@ -48,5 +48,5 @@
48
48
  "url": "https://github.com/expo/expo/issues"
49
49
  },
50
50
  "homepage": "https://github.com/expo/expo/tree/main/packages/jest-expo",
51
- "gitHead": "3142a086578deffd8704a8f1b6f0f661527d836c"
51
+ "gitHead": "d600e446fb6eaa71a089309b28076f312f0773a3"
52
52
  }
@@ -738,7 +738,6 @@ module.exports = {
738
738
  },
739
739
  ExponentDeviceMotion: { Gravity: { type: 'number', mock: 9.8100004196167 } },
740
740
  ExponentFileSystem: {
741
- bundledAssets: { type: 'object', mock: null },
742
741
  bundleDirectory: { type: 'object', mock: null },
743
742
  cacheDirectory: { type: 'string' },
744
743
  documentDirectory: { type: 'string' },