jest-expo 54.0.12 → 54.0.14
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 +14 -6
- package/src/rsc-utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jest-expo",
|
|
3
|
-
"version": "54.0.
|
|
3
|
+
"version": "54.0.14",
|
|
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.
|
|
41
|
-
"@expo/json-file": "^10.0.
|
|
40
|
+
"@expo/config": "~12.0.11",
|
|
41
|
+
"@expo/json-file": "^10.0.8",
|
|
42
42
|
"@jest/create-cache-key-function": "^29.2.1",
|
|
43
43
|
"@jest/globals": "^29.2.1",
|
|
44
44
|
"babel-jest": "^29.2.1",
|
|
@@ -48,14 +48,22 @@
|
|
|
48
48
|
"jest-watch-typeahead": "2.2.1",
|
|
49
49
|
"json5": "^2.2.3",
|
|
50
50
|
"lodash": "^4.17.19",
|
|
51
|
-
"react-server-dom-webpack": "~19.0.0",
|
|
52
51
|
"react-test-renderer": "19.1.0",
|
|
53
52
|
"server-only": "^0.0.1",
|
|
54
53
|
"stacktrace-js": "^2.0.2"
|
|
55
54
|
},
|
|
56
55
|
"peerDependencies": {
|
|
57
56
|
"expo": "*",
|
|
58
|
-
"react-native": "*"
|
|
57
|
+
"react-native": "*",
|
|
58
|
+
"react-server-dom-webpack": "~19.0.1 || ~19.1.2 || ~19.2.1"
|
|
59
59
|
},
|
|
60
|
-
"
|
|
60
|
+
"peerDependenciesMeta": {
|
|
61
|
+
"react-server-dom-webpack": {
|
|
62
|
+
"optional": true
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"react-server-dom-webpack": "~19.0.1"
|
|
67
|
+
},
|
|
68
|
+
"gitHead": "172a69f5f70c1d0e043e1532f924de97210cabc3"
|
|
61
69
|
}
|
package/src/rsc-utils.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
|
-
import { renderToReadableStream } from 'react-server-dom-webpack/server';
|
|
3
2
|
|
|
4
3
|
export const streamToString = async (stream) => {
|
|
5
4
|
const decoder = new TextDecoder();
|
|
@@ -38,6 +37,7 @@ export async function renderJsxToFlightStringAsync(jsx, throwOnError = true) {
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
export function renderJsxToReadableStream(jsx, { onError } = {}) {
|
|
40
|
+
const { renderToReadableStream } = require('react-server-dom-webpack/server');
|
|
41
41
|
const clientBoundaries = [];
|
|
42
42
|
const bundlerConfig = new Proxy(
|
|
43
43
|
{},
|