jest-expo 55.0.2 → 55.0.4

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": "55.0.2",
3
+ "version": "55.0.4",
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": "~55.0.1",
41
- "@expo/json-file": "^10.0.9",
40
+ "@expo/config": "~55.0.3",
41
+ "@expo/json-file": "^10.0.11",
42
42
  "@jest/create-cache-key-function": "^29.2.1",
43
43
  "@jest/globals": "^29.2.1",
44
44
  "babel-jest": "^29.2.1",
@@ -65,5 +65,5 @@
65
65
  "devDependencies": {
66
66
  "react-server-dom-webpack": "~19.0.3"
67
67
  },
68
- "gitHead": "9e6e4e518083f0516edf32a14a39f8afbbd049e4"
68
+ "gitHead": "7d7f6762fc6907c27a329953c682134a84410dea"
69
69
  }
@@ -618,6 +618,10 @@ module.exports = {
618
618
  key: 'unregisterForNotificationsAsync',
619
619
  },
620
620
  ],
621
+ ExpoRouter: [
622
+ { name: 'Material3DynamicColor', argumentsCount: 2, key: 'Material3DynamicColor' },
623
+ { name: 'Material3Color', argumentsCount: 2, key: 'Material3Color' },
624
+ ],
621
625
  ExpoRouterNativeLinkPreview: [],
622
626
  ExpoRouterToolbarModule: [],
623
627
  ExpoScreenCapture: [
@@ -791,7 +795,11 @@ module.exports = {
791
795
  requestCalendarPermissions: { type: 'function' },
792
796
  requestRemindersPermissions: { type: 'function' },
793
797
  },
794
- EASClient: { addListener: { type: 'function' }, removeListeners: { type: 'function' } },
798
+ EASClient: {
799
+ addListener: { type: 'function' },
800
+ clientID: { type: 'string' },
801
+ removeListeners: { type: 'function' },
802
+ },
795
803
  ExpoAgeRange: {
796
804
  addListener: { type: 'function' },
797
805
  removeListeners: { type: 'function' },
@@ -807,10 +815,14 @@ module.exports = {
807
815
  },
808
816
  ExpoApplication: {
809
817
  addListener: { type: 'function' },
818
+ applicationId: { type: 'string' },
819
+ applicationName: { type: 'string' },
810
820
  getApplicationReleaseTypeAsync: { type: 'function' },
811
821
  getInstallationTimeAsync: { type: 'function' },
812
822
  getIosIdForVendorAsync: { type: 'function' },
813
823
  getPushNotificationServiceEnvironmentAsync: { type: 'function' },
824
+ nativeApplicationVersion: { type: 'string' },
825
+ nativeBuildVersion: { type: 'string' },
814
826
  removeListeners: { type: 'function' },
815
827
  },
816
828
  ExpoAsset: {
@@ -865,6 +877,7 @@ module.exports = {
865
877
  getBatteryLevelAsync: { type: 'function' },
866
878
  getBatteryStateAsync: { type: 'function' },
867
879
  isLowPowerModeEnabledAsync: { type: 'function' },
880
+ isSupported: { type: 'boolean', mock: false },
868
881
  removeListeners: { type: 'function' },
869
882
  },
870
883
  ExpoBlob: { addListener: { type: 'function' }, removeListeners: { type: 'function' } },
@@ -924,12 +937,18 @@ module.exports = {
924
937
  },
925
938
  ExpoCellular: {
926
939
  addListener: { type: 'function' },
940
+ allowsVoip: { type: 'unknown' },
927
941
  allowsVoipAsync: { type: 'function' },
942
+ carrier: { type: 'unknown' },
943
+ generation: { type: 'number', mock: 0 },
928
944
  getCarrierNameAsync: { type: 'function' },
929
945
  getCellularGenerationAsync: { type: 'function' },
930
946
  getIsoCountryCodeAsync: { type: 'function' },
931
947
  getMobileCountryCodeAsync: { type: 'function' },
932
948
  getMobileNetworkCodeAsync: { type: 'function' },
949
+ isoCountryCode: { type: 'unknown' },
950
+ mobileCountryCode: { type: 'unknown' },
951
+ mobileNetworkCode: { type: 'unknown' },
933
952
  removeListeners: { type: 'function' },
934
953
  },
935
954
  ExpoContactAccessButton: {
@@ -974,10 +993,24 @@ module.exports = {
974
993
  },
975
994
  ExpoDevice: {
976
995
  addListener: { type: 'function' },
996
+ brand: { type: 'string' },
997
+ deviceName: { type: 'string' },
998
+ deviceType: { type: 'number', mock: 1 },
999
+ deviceYearClass: { type: 'number', mock: 2026 },
977
1000
  getDeviceTypeAsync: { type: 'function' },
978
1001
  getUptimeAsync: { type: 'function' },
1002
+ isDevice: { type: 'boolean', mock: false },
979
1003
  isRootedExperimentalAsync: { type: 'function' },
1004
+ manufacturer: { type: 'string' },
1005
+ modelId: { type: 'string' },
1006
+ modelName: { type: 'string' },
1007
+ osBuildId: { type: 'string' },
1008
+ osInternalBuildId: { type: 'string' },
1009
+ osName: { type: 'string' },
1010
+ osVersion: { type: 'string' },
980
1011
  removeListeners: { type: 'function' },
1012
+ supportedCpuArchitectures: { type: 'array' },
1013
+ totalMemory: { type: 'unknown' },
981
1014
  },
982
1015
  ExpoDocumentPicker: {
983
1016
  addListener: { type: 'function' },
@@ -1015,6 +1048,8 @@ module.exports = {
1015
1048
  },
1016
1049
  ExpoGlassEffect: {
1017
1050
  addListener: { type: 'function' },
1051
+ isGlassEffectAPIAvailable: { type: 'boolean', mock: true },
1052
+ isLiquidGlassAvailable: { type: 'boolean', mock: true },
1018
1053
  removeListeners: { type: 'function' },
1019
1054
  },
1020
1055
  ExpoGo: {
@@ -1032,6 +1067,7 @@ module.exports = {
1032
1067
  selectionAsync: { type: 'function' },
1033
1068
  },
1034
1069
  ExpoHead: {
1070
+ activities: { type: 'object' },
1035
1071
  addListener: { type: 'function' },
1036
1072
  clearActivitiesAsync: { type: 'function' },
1037
1073
  createActivity: { type: 'function' },
@@ -1113,6 +1149,7 @@ module.exports = {
1113
1149
  ExpoMediaLibrary: {
1114
1150
  addAssetsToAlbumAsync: { type: 'function' },
1115
1151
  addListener: { type: 'function' },
1152
+ CHANGE_LISTENER_NAME: { type: 'string' },
1116
1153
  createAlbumAsync: { type: 'function' },
1117
1154
  createAssetAsync: { type: 'function' },
1118
1155
  deleteAlbumsAsync: { type: 'function' },
@@ -1123,11 +1160,13 @@ module.exports = {
1123
1160
  getAssetsAsync: { type: 'function' },
1124
1161
  getMomentsAsync: { type: 'function' },
1125
1162
  getPermissionsAsync: { type: 'function' },
1163
+ MediaType: { type: 'object' },
1126
1164
  presentPermissionsPickerAsync: { type: 'function' },
1127
1165
  removeAssetsFromAlbumAsync: { type: 'function' },
1128
1166
  removeListeners: { type: 'function' },
1129
1167
  requestPermissionsAsync: { type: 'function' },
1130
1168
  saveToLibraryAsync: { type: 'function' },
1169
+ SortBy: { type: 'object' },
1131
1170
  },
1132
1171
  ExpoMediaLibraryNext: {
1133
1172
  addListener: { type: 'function' },
@@ -1172,6 +1211,7 @@ module.exports = {
1172
1211
  ExponentDeviceMotion: {
1173
1212
  addListener: { type: 'function' },
1174
1213
  getPermissionsAsync: { type: 'function' },
1214
+ Gravity: { type: 'number', mock: 9.80665 },
1175
1215
  isAvailableAsync: { type: 'function' },
1176
1216
  removeListeners: { type: 'function' },
1177
1217
  requestPermissionsAsync: { type: 'function' },
@@ -1179,8 +1219,11 @@ module.exports = {
1179
1219
  },
1180
1220
  ExponentFileSystem: {
1181
1221
  addListener: { type: 'function' },
1222
+ bundleDirectory: { type: 'string' },
1223
+ cacheDirectory: { type: 'string' },
1182
1224
  copyAsync: { type: 'function' },
1183
1225
  deleteAsync: { type: 'function' },
1226
+ documentDirectory: { type: 'string' },
1184
1227
  downloadAsync: { type: 'function' },
1185
1228
  downloadResumablePauseAsync: { type: 'function' },
1186
1229
  downloadResumableStartAsync: { type: 'function' },
@@ -1281,6 +1324,7 @@ module.exports = {
1281
1324
  },
1282
1325
  ExpoPrint: {
1283
1326
  addListener: { type: 'function' },
1327
+ Orientation: { type: 'object' },
1284
1328
  print: { type: 'function' },
1285
1329
  printToFileAsync: { type: 'function' },
1286
1330
  removeListeners: { type: 'function' },
@@ -1320,6 +1364,10 @@ module.exports = {
1320
1364
  },
1321
1365
  ExpoSecureStore: {
1322
1366
  addListener: { type: 'function' },
1367
+ AFTER_FIRST_UNLOCK: { type: 'number', mock: 0 },
1368
+ AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY: { type: 'number', mock: 1 },
1369
+ ALWAYS: { type: 'number', mock: 2 },
1370
+ ALWAYS_THIS_DEVICE_ONLY: { type: 'number', mock: 4 },
1323
1371
  canUseBiometricAuthentication: { type: 'function' },
1324
1372
  deleteValueWithKeyAsync: { type: 'function' },
1325
1373
  getValueWithKeyAsync: { type: 'function' },
@@ -1327,6 +1375,9 @@ module.exports = {
1327
1375
  removeListeners: { type: 'function' },
1328
1376
  setValueWithKeyAsync: { type: 'function' },
1329
1377
  setValueWithKeySync: { type: 'function' },
1378
+ WHEN_PASSCODE_SET_THIS_DEVICE_ONLY: { type: 'number', mock: 3 },
1379
+ WHEN_UNLOCKED: { type: 'number', mock: 5 },
1380
+ WHEN_UNLOCKED_THIS_DEVICE_ONLY: { type: 'number', mock: 6 },
1330
1381
  },
1331
1382
  ExpoSharing: {
1332
1383
  addListener: { type: 'function' },
@@ -1356,6 +1407,8 @@ module.exports = {
1356
1407
  addListener: { type: 'function' },
1357
1408
  backupDatabaseAsync: { type: 'function' },
1358
1409
  backupDatabaseSync: { type: 'function' },
1410
+ bundledExtensions: { type: 'object' },
1411
+ defaultDatabaseDirectory: { type: 'string' },
1359
1412
  deleteDatabaseAsync: { type: 'function' },
1360
1413
  deleteDatabaseSync: { type: 'function' },
1361
1414
  ensureDatabasePathExistsAsync: { type: 'function' },
@@ -1377,6 +1430,7 @@ module.exports = {
1377
1430
  },
1378
1431
  ExpoTaskManager: {
1379
1432
  addListener: { type: 'function' },
1433
+ EVENT_NAME: { type: 'string' },
1380
1434
  getRegisteredTasksAsync: { type: 'function' },
1381
1435
  getTaskOptionsAsync: { type: 'function' },
1382
1436
  isAvailableAsync: { type: 'function' },
@@ -1408,7 +1462,7 @@ module.exports = {
1408
1462
  isEmergencyLaunch: { type: 'boolean', mock: false },
1409
1463
  isEnabled: { type: 'boolean', mock: true },
1410
1464
  isUsingEmbeddedAssets: { type: 'boolean', mock: false },
1411
- launchDuration: { type: 'number', mock: 134.9719762802124 },
1465
+ launchDuration: { type: 'number', mock: 128.5330057144165 },
1412
1466
  manifest: { type: 'object' },
1413
1467
  readLogEntriesAsync: { type: 'function' },
1414
1468
  reload: { type: 'function' },
@@ -1445,7 +1499,11 @@ module.exports = {
1445
1499
  },
1446
1500
  FileSystem: {
1447
1501
  addListener: { type: 'function' },
1502
+ appleSharedContainers: { type: 'object' },
1448
1503
  availableDiskSpace: { type: 'property' },
1504
+ bundleDirectory: { type: 'string' },
1505
+ cacheDirectory: { type: 'string' },
1506
+ documentDirectory: { type: 'string' },
1449
1507
  downloadFileAsync: { type: 'function' },
1450
1508
  info: { type: 'function' },
1451
1509
  pickDirectoryAsync: { type: 'function' },