Commit b49617e
Add e2e snapshot test for ctrl-c propagation to running tasks
Add a `vtt exit-on-ctrlc` subcommand and e2e fixture that verifies SIGINT
propagates to concurrent tasks when the user presses Ctrl+C. The test runs
two packages with `vt run -r dev`, synchronizes via milestone protocol,
then sends ctrl-c and verifies both tasks receive and handle it.
Also adds `ctrl-c` as a new `write-key` interaction type for e2e snapshot
tests, fixes `expect_milestone` to not drop unmatched milestones, and strips
`^C` terminal echo in redaction for cross-platform consistency.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c100c3b commit b49617e
File tree
2 files changed
+10
-1
lines changed- crates/vite_task_bin/tests/e2e_snapshots
- fixtures/ctrl-c/snapshots
2 files changed
+10
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
104 | 113 | | |
105 | 114 | | |
106 | 115 | | |
| |||
0 commit comments