jest-expo 46.0.0 → 46.0.2

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,7 +7,9 @@ const jestPreset = cloneDeep(require('react-native/jest-preset'));
7
7
 
8
8
  // transform
9
9
  if (!jestPreset.transform) {
10
- jestPreset.transform = {};
10
+ jestPreset.transform = {
11
+ '\\.[jt]sx?$': 'babel-jest',
12
+ };
11
13
  }
12
14
 
13
15
  const defaultAssetNamePattern = '^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-expo",
3
- "version": "46.0.0",
3
+ "version": "46.0.2",
4
4
  "description": "A Jest preset to painlessly test your Expo / React Native apps.",
5
5
  "license": "MIT",
6
6
  "main": "src",
@@ -31,7 +31,7 @@
31
31
  "preset": "jest-expo/universal"
32
32
  },
33
33
  "dependencies": {
34
- "@expo/config": "~6.0.24",
34
+ "@expo/config": "~7.0.0",
35
35
  "@jest/create-cache-key-function": "^27.0.1",
36
36
  "babel-jest": "^26.6.3",
37
37
  "find-up": "^5.0.0",
@@ -39,11 +39,11 @@
39
39
  "jest-watch-typeahead": "0.6.4",
40
40
  "json5": "^2.1.0",
41
41
  "lodash": "^4.17.19",
42
- "react-test-renderer": "~18.0.0"
42
+ "react-test-renderer": "~18.1.0"
43
43
  },
44
44
  "bugs": {
45
45
  "url": "https://github.com/expo/expo/issues"
46
46
  },
47
47
  "homepage": "https://github.com/expo/expo/tree/main/packages/jest-expo",
48
- "gitHead": "6e131f2da851a47c3a24eb3d6fc971a1a7822086"
48
+ "gitHead": "957cf0793ac316152e694cbe352953e07bffcb45"
49
49
  }
@@ -480,6 +480,7 @@ module.exports = {
480
480
  { name: 'checkForUpdateAsync', argumentsCount: 0, key: 0 },
481
481
  { name: 'reload', argumentsCount: 0, key: 1 },
482
482
  { name: 'fetchUpdateAsync', argumentsCount: 0, key: 2 },
483
+ { name: 'readLogEntriesAsync', argumentsCount: 1, key: 3 },
483
484
  ],
484
485
  ExpoVideoManager: [{ name: 'setFullscreen', argumentsCount: 2, key: 0 }],
485
486
  ExpoVideoThumbnails: [{ name: 'getThumbnail', argumentsCount: 2, key: 0 }],
@@ -526,7 +527,7 @@ module.exports = {
526
527
  { name: 'isAvailableAsync', argumentsCount: 0, key: 0 },
527
528
  { name: 'setUpdateInterval', argumentsCount: 1, key: 1 },
528
529
  ],
529
- ExponentCameraManager: [
530
+ ExponentCamera: [
530
531
  { name: 'requestCameraPermissionsAsync', argumentsCount: 0, key: 0 },
531
532
  { name: 'record', argumentsCount: 2, key: 1 },
532
533
  { name: 'stopRecording', argumentsCount: 1, key: 2 },
@@ -786,7 +787,7 @@ module.exports = {
786
787
  },
787
788
  ExpoWebBrowser: {},
788
789
  ExponentAV: { Qualities: { type: 'object' } },
789
- ExponentCameraManager: {
790
+ ExponentCamera: {
790
791
  AutoFocus: { type: 'object' },
791
792
  FlashMode: { type: 'object' },
792
793
  Type: { type: 'object' },