jest-expo 54.0.0-canary-20250701-6a945c5 → 54.0.0-canary-20250713-8f814f8
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.
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const canariesDir = path.join(require.resolve('@expo/cli/package.json'), '../static/canary-full');
|
|
3
3
|
|
|
4
|
+
/** @type {import('jest-resolve').SyncResolver} */
|
|
4
5
|
function customResolver(request, options) {
|
|
5
6
|
// TODO: Remove this when we have React 19 in the expo/expo monorepo.
|
|
6
7
|
if (
|
|
7
8
|
// Change the node modules path for react and react-dom to use the vendor in Expo CLI.
|
|
8
9
|
/^(react|react\/.*|react-dom|react-dom\/.*)$/.test(request)
|
|
9
10
|
) {
|
|
10
|
-
options.
|
|
11
|
+
options.basedir = canariesDir;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
// Fall back to Jest's default resolver
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jest-expo",
|
|
3
|
-
"version": "54.0.0-canary-
|
|
3
|
+
"version": "54.0.0-canary-20250713-8f814f8",
|
|
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.
|
|
41
|
-
"@expo/json-file": "9.1.
|
|
40
|
+
"@expo/config": "11.0.14-canary-20250713-8f814f8",
|
|
41
|
+
"@expo/json-file": "9.1.6-canary-20250713-8f814f8",
|
|
42
42
|
"@jest/create-cache-key-function": "^29.2.1",
|
|
43
43
|
"@jest/globals": "^29.2.1",
|
|
44
44
|
"babel-jest": "^29.2.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"stacktrace-js": "^2.0.2"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"expo": "54.0.0-canary-
|
|
58
|
+
"expo": "54.0.0-canary-20250713-8f814f8",
|
|
59
59
|
"react-native": "*"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -259,13 +259,6 @@ module.exports = {
|
|
|
259
259
|
{ name: 'evalJsForWebViewAsync', argumentsCount: 2, key: 'evalJsForWebViewAsync' },
|
|
260
260
|
],
|
|
261
261
|
ExpoFetchModule: [],
|
|
262
|
-
ExpoFontLoader: [
|
|
263
|
-
{ name: 'getLoadedFonts', argumentsCount: 0, key: 'getLoadedFonts' },
|
|
264
|
-
{ name: 'loadAsync', argumentsCount: 2, key: 'loadAsync' },
|
|
265
|
-
],
|
|
266
|
-
ExpoFontUtils: [
|
|
267
|
-
{ name: 'renderToImageAsync', argumentsCount: 2, key: 'renderToImageAsync' },
|
|
268
|
-
],
|
|
269
262
|
ExpoGo: [{ name: 'getModulesSchema', argumentsCount: 0, key: 'getModulesSchema' }],
|
|
270
263
|
ExpoHaptics: [
|
|
271
264
|
{ name: 'impactAsync', argumentsCount: 1, key: 'impactAsync' },
|
|
@@ -907,17 +900,6 @@ module.exports = {
|
|
|
907
900
|
addListener: { type: 'function' },
|
|
908
901
|
removeListeners: { type: 'function' },
|
|
909
902
|
},
|
|
910
|
-
ExpoFontLoader: {
|
|
911
|
-
addListener: { type: 'function' },
|
|
912
|
-
getLoadedFonts: { type: 'function' },
|
|
913
|
-
loadAsync: { type: 'function' },
|
|
914
|
-
removeListeners: { type: 'function' },
|
|
915
|
-
},
|
|
916
|
-
ExpoFontUtils: {
|
|
917
|
-
addListener: { type: 'function' },
|
|
918
|
-
removeListeners: { type: 'function' },
|
|
919
|
-
renderToImageAsync: { type: 'function' },
|
|
920
|
-
},
|
|
921
903
|
ExpoGo: {
|
|
922
904
|
addListener: { type: 'function' },
|
|
923
905
|
expoVersion: { type: 'string' },
|