expect-cli 0.0.8 → 0.0.10
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/README.md +15 -0
- package/dist/index.js +44 -44
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
- package/dist/assets/resolver.darwin-arm64-DG19oi97.node +0 -0
package/README.md
CHANGED
|
@@ -40,7 +40,22 @@ Examples:
|
|
|
40
40
|
$ expect-cli -m "test the login flow" -y plan and run immediately
|
|
41
41
|
$ expect-cli --target branch test all branch changes
|
|
42
42
|
$ expect-cli --target unstaged test unstaged changes
|
|
43
|
+
|
|
44
|
+
Set `NO_TELEMTRY=1` to disable analytics events.
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## How it works
|
|
48
|
+
|
|
43
49
|
```
|
|
50
|
+
┌─────────────┐ ┌──────────────┐ ┌──────────────┐ ┌─────────┐
|
|
51
|
+
│ Scan changes│────▶│ Generate plan│────▶│ Run in browser│────▶│ Report │
|
|
52
|
+
│ (git diff) │ │ (AI agent) │ │ (Playwright) │ │ (pass/fail)│
|
|
53
|
+
└─────────────┘ └──────────────┘ └──────────────┘ └─────────┘
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Expect reads your unstaged changes or branch diff, sends them to an AI agent (Claude Code or Codex CLI), and generates a step-by-step test plan describing how to validate the changes. You review and approve the plan in an interactive TUI, then the agent executes each step against a live browser — using your real login sessions so there's no manual auth setup. Every session is recorded so you can replay exactly what happened.
|
|
57
|
+
|
|
58
|
+
Pass `-y` to skip plan review and run headlessly in CI. Exits `0` on success, `1` on failure.
|
|
44
59
|
|
|
45
60
|
## Resources & Contributing Back
|
|
46
61
|
|