Skip to content

Commit 93ca59c

Browse files
committed
test(cli): stabilize root-only build snapshot
1 parent 88f636b commit 93ca59c

3 files changed

Lines changed: 16 additions & 15 deletions

File tree

crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/settings_only_workspace/snapshots.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ A root-only workspace has no target ambiguity. Static extraction cannot see
1717
the build input that the plugin supplies. Bare vp build must run in place in
1818
a non-interactive terminal.
1919
"""
20-
steps = [{ argv = ["vp", "build"], tty = false }]
20+
steps = [
21+
{ argv = ["vp", "build"], tty = false, snapshot = false },
22+
{ argv = ["vpt", "list-dir", "dist/assets"], comment = "build output stays in the root workspace" },
23+
]

crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/settings_only_workspace/snapshots/build_in_place.global.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ a non-interactive terminal.
66

77
## `vp build`
88

9-
```
10-
transforming...
11-
✓ 2 modules transformed.
12-
rendering chunks...
13-
computing gzip size...
14-
dist/assets/index-<hash>.js <size> kB │ gzip: <size> kB
159

16-
✓ built in <duration>
10+
## `vpt list-dir dist/assets`
11+
12+
build output stays in the root workspace
13+
14+
```
15+
index-<hash>.js
1716
```

crates/vp_cli_snapshots/tests/cli_snapshots/fixtures/settings_only_workspace/snapshots/build_in_place.local.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ a non-interactive terminal.
66

77
## `vp build`
88

9-
```
10-
transforming...
11-
✓ 2 modules transformed.
12-
rendering chunks...
13-
computing gzip size...
14-
dist/assets/index-<hash>.js <size> kB │ gzip: <size> kB
159

16-
✓ built in <duration>
10+
## `vpt list-dir dist/assets`
11+
12+
build output stays in the root workspace
13+
14+
```
15+
index-<hash>.js
1716
```

0 commit comments

Comments
 (0)