jest-expo 55.0.0-canary-20251015-a6a1272 → 55.0.0-canary-20251023-4c86f95
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.
|
@@ -91,14 +91,6 @@ function getPlatformPreset(displayOptions, extensions, platform, { isServer, isR
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
if (isReactServer) {
|
|
94
|
-
try {
|
|
95
|
-
// This will throw if React isn't the right version.
|
|
96
|
-
require('react-server-dom-webpack/server');
|
|
97
|
-
} catch {
|
|
98
|
-
// Use a resolver which redirects to the canaries directory for React and React DOM.
|
|
99
|
-
preset.resolver = require.resolve('./react-canaries-resolver');
|
|
100
|
-
}
|
|
101
|
-
|
|
102
94
|
preset.testEnvironment = 'node';
|
|
103
95
|
if (!preset.setupFiles) {
|
|
104
96
|
preset.setupFiles = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jest-expo",
|
|
3
|
-
"version": "55.0.0-canary-
|
|
3
|
+
"version": "55.0.0-canary-20251023-4c86f95",
|
|
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": "12.0.11-canary-
|
|
41
|
-
"@expo/json-file": "10.0.8-canary-
|
|
40
|
+
"@expo/config": "12.0.11-canary-20251023-4c86f95",
|
|
41
|
+
"@expo/json-file": "10.0.8-canary-20251023-4c86f95",
|
|
42
42
|
"@jest/create-cache-key-function": "^29.2.1",
|
|
43
43
|
"@jest/globals": "^29.2.1",
|
|
44
44
|
"babel-jest": "^29.2.1",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"stacktrace-js": "^2.0.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"expo": "55.0.0-canary-
|
|
57
|
+
"expo": "55.0.0-canary-20251023-4c86f95",
|
|
58
58
|
"react-native": "*"
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const canariesDir = path.join(require.resolve('@expo/cli/package.json'), '../static/canary-full');
|
|
3
|
-
|
|
4
|
-
/** @type {import('jest-resolve').SyncResolver} */
|
|
5
|
-
function customResolver(request, options) {
|
|
6
|
-
// TODO: Remove this when we have React 19 in the expo/expo monorepo.
|
|
7
|
-
if (
|
|
8
|
-
// Change the node modules path for react and react-dom to use the vendor in Expo CLI.
|
|
9
|
-
/^(react|react\/.*|react-dom|react-dom\/.*)$/.test(request)
|
|
10
|
-
) {
|
|
11
|
-
options.basedir = canariesDir;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// Fall back to Jest's default resolver
|
|
15
|
-
return options.defaultResolver(request, options);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
module.exports = customResolver;
|