jest-expo 43.0.0-beta.0 → 44.0.0-beta.0
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
|
@@ -38,7 +38,7 @@ if (!Array.isArray(jestPreset.transformIgnorePatterns)) {
|
|
|
38
38
|
|
|
39
39
|
// Also please keep `testing-with-jest.md` file up to date
|
|
40
40
|
jestPreset.transformIgnorePatterns = [
|
|
41
|
-
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)
|
|
41
|
+
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)',
|
|
42
42
|
];
|
|
43
43
|
|
|
44
44
|
// setupFiles
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jest-expo",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "44.0.0-beta.0",
|
|
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,8 @@
|
|
|
31
31
|
"preset": "jest-expo/universal"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@expo/config": "^
|
|
34
|
+
"@expo/config": "^6.0.6",
|
|
35
|
+
"@jest/create-cache-key-function": "^26.6.2",
|
|
35
36
|
"babel-jest": "^26.6.3",
|
|
36
37
|
"find-up": "^5.0.0",
|
|
37
38
|
"jest": "^26.6.3",
|
|
@@ -45,5 +46,5 @@
|
|
|
45
46
|
"url": "https://github.com/expo/expo/issues"
|
|
46
47
|
},
|
|
47
48
|
"homepage": "https://github.com/expo/expo/tree/master/packages/jest-expo",
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "4ac89934e2acc4ef1fad59f338d9019fe2d92240"
|
|
49
50
|
}
|
|
@@ -83,6 +83,7 @@ module.exports = {
|
|
|
83
83
|
getRandomBase64String: { type: 'function', functionType: 'sync' },
|
|
84
84
|
getRandomBase64StringAsync: { type: 'function', functionType: 'promise' },
|
|
85
85
|
},
|
|
86
|
+
ExponentAV: { Qualities: { type: 'object' }, getConstants: { type: 'function' } },
|
|
86
87
|
ExponentNotifications: {
|
|
87
88
|
cancelAllScheduledNotificationsAsync: { type: 'function', functionType: 'promise' },
|
|
88
89
|
cancelScheduledNotificationAsync: { type: 'function', functionType: 'promise' },
|
|
@@ -224,7 +225,7 @@ module.exports = {
|
|
|
224
225
|
{ key: 1, argumentsCount: 0, name: 'isLowPowerModeEnabledAsync' },
|
|
225
226
|
{ key: 2, argumentsCount: 0, name: 'getBatteryStateAsync' },
|
|
226
227
|
],
|
|
227
|
-
ExpoBlurViewManager: [{ key: 0, argumentsCount: 2, name: '
|
|
228
|
+
ExpoBlurViewManager: [{ key: 0, argumentsCount: 2, name: 'setNativeProps' }],
|
|
228
229
|
ExpoBrightness: [
|
|
229
230
|
{ key: 0, argumentsCount: 0, name: 'getPermissionsAsync' },
|
|
230
231
|
{ key: 1, argumentsCount: 0, name: 'getSystemBrightnessAsync' },
|
|
@@ -259,28 +260,30 @@ module.exports = {
|
|
|
259
260
|
{ key: 18, argumentsCount: 1, name: 'getSourceByIdAsync' },
|
|
260
261
|
],
|
|
261
262
|
ExpoCellular: [
|
|
262
|
-
{
|
|
263
|
+
{ key: 'allowsVoipAsync', argumentsCount: 0, name: 'allowsVoipAsync' },
|
|
263
264
|
{
|
|
264
265
|
name: 'getCellularGenerationAsync',
|
|
265
266
|
argumentsCount: 0,
|
|
266
267
|
key: 'getCellularGenerationAsync',
|
|
267
268
|
},
|
|
268
|
-
{ name: 'allowsVoipAsync', key: 'allowsVoipAsync', argumentsCount: 0 },
|
|
269
|
-
{ argumentsCount: 0, key: 'getCarrierNameAsync', name: 'getCarrierNameAsync' },
|
|
270
269
|
{
|
|
271
|
-
name: '
|
|
272
|
-
key: 'getMobileCountryCodeAsync',
|
|
270
|
+
name: 'getMobileNetworkCodeAsync',
|
|
273
271
|
argumentsCount: 0,
|
|
272
|
+
key: 'getMobileNetworkCodeAsync',
|
|
274
273
|
},
|
|
274
|
+
{ name: 'getCarrierNameAsync', key: 'getCarrierNameAsync', argumentsCount: 0 },
|
|
275
275
|
{
|
|
276
|
+
key: 'getMobileCountryCodeAsync',
|
|
276
277
|
argumentsCount: 0,
|
|
277
|
-
name: '
|
|
278
|
-
key: 'getMobileNetworkCodeAsync',
|
|
278
|
+
name: 'getMobileCountryCodeAsync',
|
|
279
279
|
},
|
|
280
|
+
{ key: 'getIsoCountryCodeAsync', name: 'getIsoCountryCodeAsync', argumentsCount: 0 },
|
|
280
281
|
],
|
|
281
282
|
ExpoClipboard: [
|
|
282
|
-
{ key:
|
|
283
|
-
{
|
|
283
|
+
{ key: 'startObserving', name: 'startObserving', argumentsCount: 0 },
|
|
284
|
+
{ argumentsCount: 0, key: 'getStringAsync', name: 'getStringAsync' },
|
|
285
|
+
{ key: 'setString', name: 'setString', argumentsCount: 1 },
|
|
286
|
+
{ argumentsCount: 0, name: 'stopObserving', key: 'stopObserving' },
|
|
284
287
|
],
|
|
285
288
|
ExpoContacts: [
|
|
286
289
|
{ key: 0, argumentsCount: 0, name: 'getDefaultContainerIdentifierAsync' },
|
|
@@ -314,10 +317,11 @@ module.exports = {
|
|
|
314
317
|
ExpoFirebaseAnalytics: [
|
|
315
318
|
{ key: 0, argumentsCount: 2, name: 'logEvent' },
|
|
316
319
|
{ key: 1, argumentsCount: 1, name: 'setUserId' },
|
|
317
|
-
{ key: 2, argumentsCount:
|
|
320
|
+
{ key: 2, argumentsCount: 0, name: 'resetAnalyticsData' },
|
|
318
321
|
{ key: 3, argumentsCount: 2, name: 'setCurrentScreen' },
|
|
319
|
-
{ key: 4, argumentsCount:
|
|
320
|
-
{ key: 5, argumentsCount: 1, name: '
|
|
322
|
+
{ key: 4, argumentsCount: 1, name: 'setUserProperties' },
|
|
323
|
+
{ key: 5, argumentsCount: 1, name: 'setSessionTimeoutDuration' },
|
|
324
|
+
{ key: 6, argumentsCount: 1, name: 'setAnalyticsCollectionEnabled' },
|
|
321
325
|
],
|
|
322
326
|
ExpoFirebaseCore: [],
|
|
323
327
|
ExpoFontLoader: [{ key: 0, argumentsCount: 2, name: 'loadAsync' }],
|
|
@@ -333,9 +337,9 @@ module.exports = {
|
|
|
333
337
|
{ key: 8, argumentsCount: 0, name: 'isConnectedAsync' },
|
|
334
338
|
],
|
|
335
339
|
ExpoHaptics: [
|
|
336
|
-
{
|
|
337
|
-
{ name: 'impactAsync', key: 'impactAsync', argumentsCount: 1 },
|
|
340
|
+
{ argumentsCount: 1, name: 'impactAsync', key: 'impactAsync' },
|
|
338
341
|
{ key: 'selectionAsync', name: 'selectionAsync', argumentsCount: 0 },
|
|
342
|
+
{ key: 'notificationAsync', name: 'notificationAsync', argumentsCount: 1 },
|
|
339
343
|
],
|
|
340
344
|
ExpoImageManipulator: [{ key: 0, argumentsCount: 3, name: 'manipulateAsync' }],
|
|
341
345
|
ExpoKeepAwake: [
|
|
@@ -343,7 +347,6 @@ module.exports = {
|
|
|
343
347
|
{ key: 1, argumentsCount: 1, name: 'deactivate' },
|
|
344
348
|
],
|
|
345
349
|
ExpoLinearGradient: [],
|
|
346
|
-
ExpoLinearGradientManager: [],
|
|
347
350
|
ExpoLocalAuthentication: [
|
|
348
351
|
{ key: 0, argumentsCount: 0, name: 'supportedAuthenticationTypesAsync' },
|
|
349
352
|
{ key: 1, argumentsCount: 0, name: 'isEnrolledAsync' },
|
|
@@ -351,7 +354,9 @@ module.exports = {
|
|
|
351
354
|
{ key: 3, argumentsCount: 0, name: 'hasHardwareAsync' },
|
|
352
355
|
{ key: 4, argumentsCount: 1, name: 'authenticateAsync' },
|
|
353
356
|
],
|
|
354
|
-
ExpoLocalization: [
|
|
357
|
+
ExpoLocalization: [
|
|
358
|
+
{ argumentsCount: 0, key: 'getLocalizationAsync', name: 'getLocalizationAsync' },
|
|
359
|
+
],
|
|
355
360
|
ExpoLocation: [
|
|
356
361
|
{ key: 0, argumentsCount: 2, name: 'watchPositionImplAsync' },
|
|
357
362
|
{ key: 1, argumentsCount: 1, name: 'watchDeviceHeading' },
|
|
@@ -447,6 +452,10 @@ module.exports = {
|
|
|
447
452
|
{ key: 0, argumentsCount: 0, name: 'isAvailableAsync' },
|
|
448
453
|
{ key: 1, argumentsCount: 0, name: 'requestReview' },
|
|
449
454
|
],
|
|
455
|
+
ExpoSystemUI: [
|
|
456
|
+
{ name: 'setBackgroundColorAsync', argumentsCount: 1, key: 'setBackgroundColorAsync' },
|
|
457
|
+
{ argumentsCount: 0, name: 'getBackgroundColorAsync', key: 'getBackgroundColorAsync' },
|
|
458
|
+
],
|
|
450
459
|
ExpoTaskManager: [
|
|
451
460
|
{ key: 0, argumentsCount: 0, name: 'isAvailableAsync' },
|
|
452
461
|
{ key: 1, argumentsCount: 2, name: 'notifyTaskFinishedAsync' },
|
|
@@ -457,8 +466,8 @@ module.exports = {
|
|
|
457
466
|
{ key: 6, argumentsCount: 0, name: 'getRegisteredTasksAsync' },
|
|
458
467
|
],
|
|
459
468
|
ExpoTrackingTransparency: [
|
|
460
|
-
{
|
|
461
|
-
{ argumentsCount: 0,
|
|
469
|
+
{ name: 'requestPermissionsAsync', key: 'requestPermissionsAsync', argumentsCount: 0 },
|
|
470
|
+
{ argumentsCount: 0, name: 'getPermissionsAsync', key: 'getPermissionsAsync' },
|
|
462
471
|
],
|
|
463
472
|
ExpoUpdates: [
|
|
464
473
|
{ key: 0, argumentsCount: 0, name: 'checkForUpdateAsync' },
|
|
@@ -724,6 +733,14 @@ module.exports = {
|
|
|
724
733
|
mobileNetworkCode: { type: 'object', mock: null },
|
|
725
734
|
removeListeners: { type: 'function' },
|
|
726
735
|
},
|
|
736
|
+
ExpoClipboard: {
|
|
737
|
+
addListener: { type: 'function' },
|
|
738
|
+
getStringAsync: { type: 'function' },
|
|
739
|
+
removeListeners: { type: 'function' },
|
|
740
|
+
setString: { type: 'function' },
|
|
741
|
+
startObserving: { type: 'function' },
|
|
742
|
+
stopObserving: { type: 'function' },
|
|
743
|
+
},
|
|
727
744
|
ExpoDevice: {
|
|
728
745
|
addListener: { type: 'function' },
|
|
729
746
|
brand: { type: 'string' },
|
|
@@ -818,6 +835,12 @@ module.exports = {
|
|
|
818
835
|
removeListeners: { type: 'function' },
|
|
819
836
|
setValueWithKeyAsync: { type: 'function' },
|
|
820
837
|
},
|
|
838
|
+
ExpoSystemUI: {
|
|
839
|
+
addListener: { type: 'function' },
|
|
840
|
+
getBackgroundColorAsync: { type: 'function' },
|
|
841
|
+
removeListeners: { type: 'function' },
|
|
842
|
+
setBackgroundColorAsync: { type: 'function' },
|
|
843
|
+
},
|
|
821
844
|
ExpoTaskManager: {
|
|
822
845
|
EVENT_NAME: { type: 'string' },
|
|
823
846
|
addListener: { type: 'function' },
|
|
@@ -1013,7 +1036,6 @@ module.exports = {
|
|
|
1013
1036
|
'ExpoBarCodeScannerView',
|
|
1014
1037
|
'ExpoBlurView',
|
|
1015
1038
|
'ExpoLinearGradient',
|
|
1016
|
-
'ExpoLinearGradient',
|
|
1017
1039
|
'ExpoVideoView',
|
|
1018
1040
|
'ExponentCamera',
|
|
1019
1041
|
'ExponentGLView',
|