jest-expo 45.0.0-beta.1 → 45.0.1

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": "45.0.0-beta.1",
3
+ "version": "45.0.1",
4
4
  "description": "A Jest preset to painlessly test your Expo / React Native apps.",
5
5
  "license": "MIT",
6
6
  "main": "src",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@expo/config": "^6.0.14",
35
- "@jest/create-cache-key-function": "^26.6.2",
35
+ "@jest/create-cache-key-function": "^27.0.1",
36
36
  "babel-jest": "^26.6.3",
37
37
  "find-up": "^5.0.0",
38
38
  "jest-watch-select-projects": "^2.0.0",
@@ -45,5 +45,5 @@
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": "22dce752354bb429c84851bc4389abe47a766b1f"
48
+ "gitHead": "03eadaeef5f20cb11af43238724242b30f2eb182"
49
49
  }
@@ -140,6 +140,7 @@ module.exports = {
140
140
  { key: 2, argumentsCount: 4, name: 'registerViewsForInteraction' },
141
141
  { key: 3, argumentsCount: 2, name: 'init' },
142
142
  ],
143
+ EASClient: [],
143
144
  ExpoAdsAdMob: [
144
145
  { key: 0, argumentsCount: 0, name: 'getPermissionsAsync' },
145
146
  { key: 1, argumentsCount: 1, name: 'setTestDeviceIDAsync' },
@@ -254,37 +255,37 @@ module.exports = {
254
255
  { key: 18, argumentsCount: 1, name: 'getSourceByIdAsync' },
255
256
  ],
256
257
  ExpoCellular: [
258
+ { name: 'allowsVoipAsync', argumentsCount: 0, key: 'allowsVoipAsync' },
259
+ { name: 'getCarrierNameAsync', key: 'getCarrierNameAsync', argumentsCount: 0 },
257
260
  {
258
261
  argumentsCount: 0,
259
- key: 'getCellularGenerationAsync',
260
- name: 'getCellularGenerationAsync',
262
+ name: 'getMobileNetworkCodeAsync',
263
+ key: 'getMobileNetworkCodeAsync',
261
264
  },
262
- { key: 'getCarrierNameAsync', argumentsCount: 0, name: 'getCarrierNameAsync' },
263
- { name: 'allowsVoipAsync', key: 'allowsVoipAsync', argumentsCount: 0 },
264
265
  {
265
- argumentsCount: 0,
266
266
  key: 'getMobileCountryCodeAsync',
267
+ argumentsCount: 0,
267
268
  name: 'getMobileCountryCodeAsync',
268
269
  },
269
270
  {
270
- name: 'getMobileNetworkCodeAsync',
271
+ name: 'getCellularGenerationAsync',
272
+ key: 'getCellularGenerationAsync',
271
273
  argumentsCount: 0,
272
- key: 'getMobileNetworkCodeAsync',
273
274
  },
274
- { argumentsCount: 0, name: 'getIsoCountryCodeAsync', key: 'getIsoCountryCodeAsync' },
275
+ { key: 'getIsoCountryCodeAsync', argumentsCount: 0, name: 'getIsoCountryCodeAsync' },
275
276
  ],
276
277
  ExpoClipboard: [
277
- { argumentsCount: 1, name: 'setStringAsync', key: 'setStringAsync' },
278
- { argumentsCount: 0, name: 'getStringAsync', key: 'getStringAsync' },
279
- { name: 'getImageAsync', key: 'getImageAsync', argumentsCount: 1 },
278
+ { name: 'getStringAsync', argumentsCount: 1, key: 'getStringAsync' },
279
+ { key: 'getImageAsync', name: 'getImageAsync', argumentsCount: 1 },
280
+ { name: 'setImageAsync', key: 'setImageAsync', argumentsCount: 1 },
281
+ { key: 'stopObserving', argumentsCount: 0, name: 'stopObserving' },
282
+ { argumentsCount: 0, key: 'getUrlAsync', name: 'getUrlAsync' },
283
+ { key: 'setUrlAsync', argumentsCount: 1, name: 'setUrlAsync' },
284
+ { argumentsCount: 0, name: 'hasUrlAsync', key: 'hasUrlAsync' },
285
+ { name: 'startObserving', key: 'startObserving', argumentsCount: 0 },
286
+ { argumentsCount: 2, key: 'setStringAsync', name: 'setStringAsync' },
280
287
  { key: 'hasStringAsync', argumentsCount: 0, name: 'hasStringAsync' },
281
- { key: 'startObserving', argumentsCount: 0, name: 'startObserving' },
282
- { name: 'stopObserving', key: 'stopObserving', argumentsCount: 0 },
283
- { key: 'hasUrlAsync', argumentsCount: 0, name: 'hasUrlAsync' },
284
- { key: 'hasImageAsync', name: 'hasImageAsync', argumentsCount: 0 },
285
- { key: 'getUrlAsync', argumentsCount: 0, name: 'getUrlAsync' },
286
- { argumentsCount: 1, key: 'setUrlAsync', name: 'setUrlAsync' },
287
- { argumentsCount: 1, name: 'setImageAsync', key: 'setImageAsync' },
288
+ { argumentsCount: 0, name: 'hasImageAsync', key: 'hasImageAsync' },
288
289
  ],
289
290
  ExpoContacts: [
290
291
  { key: 0, argumentsCount: 0, name: 'getDefaultContainerIdentifierAsync' },
@@ -307,8 +308,8 @@ module.exports = {
307
308
  { key: 17, argumentsCount: 0, name: 'dismissFormAsync' },
308
309
  ],
309
310
  ExpoCrypto: [
310
- { argumentsCount: 3, name: 'digestStringAsync', key: 'digestStringAsync' },
311
- { name: 'digestString', key: 'digestString', argumentsCount: 3 },
311
+ { key: 'digestString', argumentsCount: 3, name: 'digestString' },
312
+ { key: 'digestStringAsync', argumentsCount: 3, name: 'digestStringAsync' },
312
313
  ],
313
314
  ExpoDevice: [
314
315
  { key: 0, argumentsCount: 0, name: 'getDeviceTypeAsync' },
@@ -321,11 +322,10 @@ module.exports = {
321
322
  ExpoFirebaseAnalytics: [
322
323
  { key: 0, argumentsCount: 2, name: 'logEvent' },
323
324
  { key: 1, argumentsCount: 1, name: 'setUserId' },
324
- { key: 2, argumentsCount: 0, name: 'resetAnalyticsData' },
325
- { key: 3, argumentsCount: 2, name: 'setCurrentScreen' },
326
- { key: 4, argumentsCount: 1, name: 'setUserProperties' },
327
- { key: 5, argumentsCount: 1, name: 'setSessionTimeoutDuration' },
328
- { key: 6, argumentsCount: 1, name: 'setAnalyticsCollectionEnabled' },
325
+ { key: 2, argumentsCount: 1, name: 'setUserProperties' },
326
+ { key: 3, argumentsCount: 0, name: 'resetAnalyticsData' },
327
+ { key: 4, argumentsCount: 1, name: 'setSessionTimeoutDuration' },
328
+ { key: 5, argumentsCount: 1, name: 'setAnalyticsCollectionEnabled' },
329
329
  ],
330
330
  ExpoFirebaseCore: [],
331
331
  ExpoFontLoader: [{ key: 0, argumentsCount: 2, name: 'loadAsync' }],
@@ -341,17 +341,17 @@ module.exports = {
341
341
  { key: 8, argumentsCount: 0, name: 'isConnectedAsync' },
342
342
  ],
343
343
  ExpoHaptics: [
344
- { name: 'notificationAsync', argumentsCount: 1, key: 'notificationAsync' },
345
- { argumentsCount: 1, key: 'impactAsync', name: 'impactAsync' },
346
344
  { argumentsCount: 0, name: 'selectionAsync', key: 'selectionAsync' },
345
+ { key: 'impactAsync', argumentsCount: 1, name: 'impactAsync' },
346
+ { key: 'notificationAsync', name: 'notificationAsync', argumentsCount: 1 },
347
347
  ],
348
348
  ExpoImageManipulator: [
349
- { key: 'manipulateAsync', name: 'manipulateAsync', argumentsCount: 3 },
349
+ { argumentsCount: 3, key: 'manipulateAsync', name: 'manipulateAsync' },
350
350
  ],
351
351
  ExpoKeepAwake: [
352
+ { key: 'isActivated', name: 'isActivated', argumentsCount: 0 },
352
353
  { key: 'activate', argumentsCount: 1, name: 'activate' },
353
- { name: 'deactivate', argumentsCount: 1, key: 'deactivate' },
354
- { key: 'isActivated', argumentsCount: 0, name: 'isActivated' },
354
+ { key: 'deactivate', name: 'deactivate', argumentsCount: 1 },
355
355
  ],
356
356
  ExpoLinearGradient: [],
357
357
  ExpoLocalAuthentication: [
@@ -362,7 +362,7 @@ module.exports = {
362
362
  { key: 4, argumentsCount: 1, name: 'authenticateAsync' },
363
363
  ],
364
364
  ExpoLocalization: [
365
- { name: 'getLocalizationAsync', key: 'getLocalizationAsync', argumentsCount: 0 },
365
+ { argumentsCount: 0, name: 'getLocalizationAsync', key: 'getLocalizationAsync' },
366
366
  ],
367
367
  ExpoLocation: [
368
368
  { key: 0, argumentsCount: 2, name: 'watchPositionImplAsync' },
@@ -430,12 +430,12 @@ module.exports = {
430
430
  ExpoPublisherBannerView: [],
431
431
  ExpoPushTokenManager: [{ key: 0, argumentsCount: 0, name: 'getDevicePushTokenAsync' }],
432
432
  ExpoRandom: [
433
+ { key: 'getRandomBase64String', argumentsCount: 1, name: 'getRandomBase64String' },
433
434
  {
434
- argumentsCount: 1,
435
435
  name: 'getRandomBase64StringAsync',
436
436
  key: 'getRandomBase64StringAsync',
437
+ argumentsCount: 1,
437
438
  },
438
- { name: 'getRandomBase64String', key: 'getRandomBase64String', argumentsCount: 1 },
439
439
  ],
440
440
  ExpoSMS: [
441
441
  { key: 0, argumentsCount: 0, name: 'isAvailableAsync' },
@@ -469,7 +469,7 @@ module.exports = {
469
469
  ],
470
470
  ExpoSystemUI: [
471
471
  { argumentsCount: 0, name: 'getBackgroundColorAsync', key: 'getBackgroundColorAsync' },
472
- { name: 'setBackgroundColorAsync', key: 'setBackgroundColorAsync', argumentsCount: 1 },
472
+ { key: 'setBackgroundColorAsync', argumentsCount: 1, name: 'setBackgroundColorAsync' },
473
473
  ],
474
474
  ExpoTaskManager: [
475
475
  { key: 0, argumentsCount: 0, name: 'isAvailableAsync' },
@@ -481,8 +481,8 @@ module.exports = {
481
481
  { key: 6, argumentsCount: 0, name: 'getRegisteredTasksAsync' },
482
482
  ],
483
483
  ExpoTrackingTransparency: [
484
- { argumentsCount: 0, name: 'requestPermissionsAsync', key: 'requestPermissionsAsync' },
485
- { name: 'getPermissionsAsync', key: 'getPermissionsAsync', argumentsCount: 0 },
484
+ { name: 'getPermissionsAsync', argumentsCount: 0, key: 'getPermissionsAsync' },
485
+ { key: 'requestPermissionsAsync', argumentsCount: 0, name: 'requestPermissionsAsync' },
486
486
  ],
487
487
  ExpoUpdates: [
488
488
  { key: 0, argumentsCount: 0, name: 'checkForUpdateAsync' },
@@ -492,18 +492,18 @@ module.exports = {
492
492
  ExpoVideoManager: [{ key: 0, argumentsCount: 2, name: 'setFullscreen' }],
493
493
  ExpoVideoThumbnails: [{ key: 0, argumentsCount: 2, name: 'getThumbnail' }],
494
494
  ExpoWebBrowser: [
495
- { argumentsCount: 2, name: 'openBrowserAsync', key: 'openBrowserAsync' },
496
- { key: 'openAuthSessionAsync', name: 'openAuthSessionAsync', argumentsCount: 2 },
497
- { name: 'warmUpAsync', argumentsCount: 0, key: 'warmUpAsync' },
498
- { argumentsCount: 0, name: 'dismissAuthSession', key: 'dismissAuthSession' },
499
- { key: 'mayInitWithUrlAsync', argumentsCount: 0, name: 'mayInitWithUrlAsync' },
500
- { name: 'coolDownAsync', key: 'coolDownAsync', argumentsCount: 0 },
495
+ { argumentsCount: 0, name: 'dismissBrowser', key: 'dismissBrowser' },
496
+ { key: 'openBrowserAsync', argumentsCount: 2, name: 'openBrowserAsync' },
497
+ { key: 'dismissAuthSession', name: 'dismissAuthSession', argumentsCount: 0 },
498
+ { key: 'warmUpAsync', argumentsCount: 0, name: 'warmUpAsync' },
499
+ { name: 'mayInitWithUrlAsync', argumentsCount: 0, key: 'mayInitWithUrlAsync' },
501
500
  {
502
501
  name: 'getCustomTabsSupportingBrowsers',
503
502
  key: 'getCustomTabsSupportingBrowsers',
504
503
  argumentsCount: 0,
505
504
  },
506
- { key: 'dismissBrowser', name: 'dismissBrowser', argumentsCount: 0 },
505
+ { name: 'openAuthSessionAsync', key: 'openAuthSessionAsync', argumentsCount: 3 },
506
+ { key: 'coolDownAsync', argumentsCount: 0, name: 'coolDownAsync' },
507
507
  ],
508
508
  ExponentAV: [
509
509
  { key: 0, argumentsCount: 1, name: 'getStatusForVideo' },
@@ -607,26 +607,26 @@ module.exports = {
607
607
  ],
608
608
  ExponentImagePicker: [
609
609
  {
610
- name: 'getMediaLibraryPermissionsAsync',
610
+ name: 'requestMediaLibraryPermissionsAsync',
611
611
  argumentsCount: 1,
612
- key: 'getMediaLibraryPermissionsAsync',
612
+ key: 'requestMediaLibraryPermissionsAsync',
613
613
  },
614
- { argumentsCount: 1, name: 'launchCameraAsync', key: 'launchCameraAsync' },
615
614
  {
616
- key: 'requestCameraPermissionsAsync',
617
- argumentsCount: 0,
618
615
  name: 'requestCameraPermissionsAsync',
616
+ argumentsCount: 0,
617
+ key: 'requestCameraPermissionsAsync',
619
618
  },
620
619
  {
621
- key: 'requestMediaLibraryPermissionsAsync',
622
- name: 'requestMediaLibraryPermissionsAsync',
623
620
  argumentsCount: 1,
621
+ name: 'getMediaLibraryPermissionsAsync',
622
+ key: 'getMediaLibraryPermissionsAsync',
624
623
  },
625
- { key: 'launchImageLibraryAsync', name: 'launchImageLibraryAsync', argumentsCount: 1 },
624
+ { key: 'launchCameraAsync', name: 'launchCameraAsync', argumentsCount: 1 },
625
+ { argumentsCount: 1, name: 'launchImageLibraryAsync', key: 'launchImageLibraryAsync' },
626
626
  {
627
- key: 'getCameraPermissionsAsync',
628
627
  argumentsCount: 0,
629
628
  name: 'getCameraPermissionsAsync',
629
+ key: 'getCameraPermissionsAsync',
630
630
  },
631
631
  ],
632
632
  ExponentMagnetometer: [
@@ -668,6 +668,7 @@ module.exports = {
668
668
  ExponentSQLite: [
669
669
  { key: 0, argumentsCount: 1, name: 'close' },
670
670
  { key: 1, argumentsCount: 3, name: 'exec' },
671
+ { key: 2, argumentsCount: 1, name: 'deleteAsync' },
671
672
  ],
672
673
  ExponentSegment: [
673
674
  { key: 0, argumentsCount: 1, name: 'setEnabledAsync' },
@@ -719,6 +720,11 @@ module.exports = {
719
720
  setMeditationService: { type: 'function' },
720
721
  setUrlPrefix: { type: 'function' },
721
722
  },
723
+ EASClient: {
724
+ addListener: { type: 'function' },
725
+ clientID: { type: 'string' },
726
+ removeListeners: { type: 'function' },
727
+ },
722
728
  ExpoApplication: {
723
729
  addListener: { type: 'function' },
724
730
  applicationId: { type: 'string' },
@@ -745,7 +751,7 @@ module.exports = {
745
751
  getBatteryLevelAsync: { type: 'function' },
746
752
  getBatteryStateAsync: { type: 'function' },
747
753
  isLowPowerModeEnabledAsync: { type: 'function' },
748
- isSupported: { type: 'boolean', mock: true },
754
+ isSupported: { type: 'boolean', mock: false },
749
755
  removeListeners: { type: 'function' },
750
756
  },
751
757
  ExpoCellular: {
@@ -789,10 +795,10 @@ module.exports = {
789
795
  addListener: { type: 'function' },
790
796
  brand: { type: 'string' },
791
797
  deviceName: { type: 'string' },
792
- deviceYearClass: { type: 'number', mock: 2020 },
798
+ deviceYearClass: { type: 'number', mock: 2022 },
793
799
  getDeviceTypeAsync: { type: 'function' },
794
800
  getUptimeAsync: { type: 'function' },
795
- isDevice: { type: 'boolean', mock: true },
801
+ isDevice: { type: 'boolean', mock: false },
796
802
  isRootedExperimentalAsync: { type: 'function' },
797
803
  manufacturer: { type: 'string' },
798
804
  modelId: { type: 'string' },
@@ -1012,7 +1018,7 @@ module.exports = {
1012
1018
  appOwnership: { type: 'string' },
1013
1019
  debugMode: { type: 'boolean', mock: true },
1014
1020
  deviceName: { type: 'string' },
1015
- deviceYearClass: { type: 'number', mock: 2021 },
1021
+ deviceYearClass: { type: 'number', mock: 2022 },
1016
1022
  executionEnvironment: { type: 'string' },
1017
1023
  experienceUrl: { type: 'string' },
1018
1024
  expoRuntimeVersion: { type: 'string' },
@@ -1111,7 +1117,6 @@ module.exports = {
1111
1117
  mock: {
1112
1118
  ExpoAppleAuthenticationButtonSignUpBlack: { propsNames: ['cornerRadius'] },
1113
1119
  ExpoVideoView: { propsNames: ['status', 'resizeMode', 'useNativeControls', 'source'] },
1114
- ExpoAppleAuthenticationButtonSignInBlack: { propsNames: ['cornerRadius'] },
1115
1120
  ExpoBlurView: { propsNames: ['intensity', 'tint'] },
1116
1121
  ExpoAdsAdMobBannerView: {
1117
1122
  propsNames: ['additionalRequestParams', 'bannerSize', 'adUnitID'],
@@ -1124,11 +1129,12 @@ module.exports = {
1124
1129
  ExpoBarCodeScannerView: { propsNames: ['type', 'barCodeTypes'] },
1125
1130
  ExpoAppleAuthenticationButtonSignInWhiteOutline: { propsNames: ['cornerRadius'] },
1126
1131
  ExponentGLView: { propsNames: ['msaaSamples'] },
1132
+ ExpoAppleAuthenticationButtonContinueWhite: { propsNames: ['cornerRadius'] },
1133
+ CTKBannerView: { propsNames: ['placementId', 'size'] },
1127
1134
  MediaView: { propsNames: [] },
1128
1135
  ExpoAppleAuthenticationButtonSignUpWhiteOutline: { propsNames: ['cornerRadius'] },
1129
1136
  ExpoAppleAuthenticationButtonContinueBlack: { propsNames: ['cornerRadius'] },
1130
- ExpoAppleAuthenticationButtonContinueWhite: { propsNames: ['cornerRadius'] },
1131
- CTKBannerView: { propsNames: ['placementId', 'size'] },
1137
+ ExpoAppleAuthenticationButtonSignInBlack: { propsNames: ['cornerRadius'] },
1132
1138
  AdIconView: { propsNames: [] },
1133
1139
  CTKNativeAd: { propsNames: ['adsManager'] },
1134
1140
  ExponentCamera: {
@@ -1219,15 +1225,17 @@ module.exports = {
1219
1225
  RNCMaskedViewManager: {},
1220
1226
  RNCNetInfo: {
1221
1227
  addListener: { type: 'function', functionType: 'async' },
1228
+ configure: { type: 'function', functionType: 'async' },
1222
1229
  getConstants: { type: 'function' },
1223
1230
  getCurrentState: { type: 'function', functionType: 'promise' },
1224
1231
  removeListeners: { type: 'function', functionType: 'async' },
1225
1232
  },
1226
1233
  RNCPickerManager: {},
1227
- RNCSafeAreaProvider: {
1234
+ RNCSafeAreaContext: {
1228
1235
  getConstants: { type: 'function' },
1229
1236
  initialWindowMetrics: { type: 'object' },
1230
1237
  },
1238
+ RNCSafeAreaProvider: {},
1231
1239
  RNCSafeAreaView: {},
1232
1240
  RNCSegmentedControlManager: {},
1233
1241
  RNCSliderManager: {},
@@ -1457,7 +1465,6 @@ module.exports = {
1457
1465
  addListener: { type: 'function', functionType: 'async' },
1458
1466
  animateNextTransition: { type: 'function', functionType: 'async' },
1459
1467
  attachEvent: { type: 'function', functionType: 'async' },
1460
- configureProps: { type: 'function', functionType: 'async' },
1461
1468
  connectNodeToView: { type: 'function', functionType: 'async' },
1462
1469
  connectNodes: { type: 'function', functionType: 'async' },
1463
1470
  createNode: { type: 'function', functionType: 'async' },
@@ -1467,6 +1474,7 @@ module.exports = {
1467
1474
  dropNode: { type: 'function', functionType: 'async' },
1468
1475
  getConstants: { type: 'function' },
1469
1476
  getValue: { type: 'function', functionType: 'async' },
1477
+ installTurboModule: { type: 'function', functionType: 'async' },
1470
1478
  removeListeners: { type: 'function', functionType: 'async' },
1471
1479
  setValue: { type: 'function', functionType: 'async' },
1472
1480
  triggerRender: { type: 'function', functionType: 'async' },