jest-expo 53.0.0-canary-20250303-4dba60e → 53.0.0-canary-20250304-8a21aa7
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 +5 -5
- package/src/preset/setup.js +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jest-expo",
|
|
3
|
-
"version": "53.0.0-canary-
|
|
3
|
+
"version": "53.0.0-canary-20250304-8a21aa7",
|
|
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": "11.0.0-canary-
|
|
41
|
-
"@expo/json-file": "9.0.3-canary-
|
|
40
|
+
"@expo/config": "11.0.0-canary-20250304-8a21aa7",
|
|
41
|
+
"@expo/json-file": "9.0.3-canary-20250304-8a21aa7",
|
|
42
42
|
"@jest/create-cache-key-function": "^29.2.1",
|
|
43
43
|
"@jest/globals": "^29.2.1",
|
|
44
44
|
"babel-jest": "^29.2.1",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"stacktrace-js": "^2.0.2"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"expo": "53.0.0-canary-
|
|
59
|
+
"expo": "53.0.0-canary-20250304-8a21aa7",
|
|
60
60
|
"react-native": "*"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "8a21aa734aadf339bb2778a80d32602ed561405b"
|
|
63
63
|
}
|
package/src/preset/setup.js
CHANGED
|
@@ -293,5 +293,10 @@ try {
|
|
|
293
293
|
// Installs web implementations of global things that are normally installed through JSI.
|
|
294
294
|
require('expo-modules-core/src/web/index.web');
|
|
295
295
|
|
|
296
|
+
jest.doMock('expo/src/winter/FormData', () => ({
|
|
297
|
+
// The `installFormDataPatch` function is for native runtime only,
|
|
298
|
+
// so we don't need to patch `FormData` for the jest runtime.
|
|
299
|
+
installFormDataPatch: jest.fn(),
|
|
300
|
+
}));
|
|
296
301
|
// Ensure the environment globals are installed before the first test runs.
|
|
297
302
|
require('expo/src/winter');
|