@delacour/warden-e2e 0.11.0 → 0.12.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/{chunk-ggcjzrvh.mjs → chunk-qz94hsb6.mjs} +365 -216
- package/index.mjs +5 -2
- package/package.json +2 -2
- package/preload.mjs +570 -419
- package/types/e2e/src/devtools/native-log-tail.d.ts +13 -0
- package/types/e2e/src/devtools/native-log.d.ts +14 -1
- package/types/e2e/src/runner/failure.d.ts +2 -0
- package/types/e2e/src/session.d.ts +1 -1
package/index.mjs
CHANGED
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
isLocator,
|
|
13
13
|
pickOne,
|
|
14
14
|
textOf,
|
|
15
|
+
formatNativeTail,
|
|
16
|
+
captureNativeLog,
|
|
15
17
|
isRecoverableLoss,
|
|
16
18
|
runStep,
|
|
17
19
|
attemptSession,
|
|
@@ -30,7 +32,6 @@ import {
|
|
|
30
32
|
hash6,
|
|
31
33
|
attemptDir,
|
|
32
34
|
specIdOf,
|
|
33
|
-
captureNativeLog,
|
|
34
35
|
BUN_TIMEOUT_MARGIN_MS2,
|
|
35
36
|
ownHook,
|
|
36
37
|
currentScope,
|
|
@@ -41,7 +42,7 @@ import {
|
|
|
41
42
|
registrationDefaults,
|
|
42
43
|
markOnly,
|
|
43
44
|
WARDEN_E2E_VERSION2
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-qz94hsb6.mjs";
|
|
45
46
|
// ../../packages/e2e/src/expect/expect.ts
|
|
46
47
|
import { expect as bunExpect } from "bun:test";
|
|
47
48
|
|
|
@@ -1090,6 +1091,8 @@ async function captureFailureArtifacts(session, ctx, budget, startedAt) {
|
|
|
1090
1091
|
]
|
|
1091
1092
|
];
|
|
1092
1093
|
for (const capture of captures) {
|
|
1094
|
+
for (const line of formatNativeTail(capture.tail ?? []))
|
|
1095
|
+
session.log(line);
|
|
1093
1096
|
for (const file of capture.files)
|
|
1094
1097
|
ctx.files.add(file);
|
|
1095
1098
|
for (const problem of capture.problems) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delacour/warden-e2e",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "TypeScript e2e testing for React Native and Expo on iOS simulators and Android emulators, run by `warden e2e`: test, expect, screen, device, app",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"LICENSE"
|
|
42
42
|
],
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@delacour/warden": "0.
|
|
44
|
+
"@delacour/warden": "0.12.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"zod": "^4.4.3"
|