-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathsnapshots.toml
More file actions
57 lines (50 loc) · 1.9 KB
/
snapshots.toml
File metadata and controls
57 lines (50 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Tests skip-intermediate reconnection when a package lacks the requested task.
# Topology: top → middle → bottom
# top and bottom have `build`; middle does NOT.
# pnpm Example 1: top... selects {top, middle, bottom}.
# middle lacks build — reconnected (top→bottom). Result: bottom#build → top#build.
[[plan]]
compact = true
name = "filter intermediate lacks task is skipped"
args = ["run", "--filter", "@test/top...", "build"]
# Same scenario via -t flag (ContainingPackage traversal).
[[plan]]
compact = true
name = "transitive build skips intermediate without task"
args = ["run", "-t", "build"]
cwd = "packages/top"
# pnpm Example 2: middle... selects {middle, bottom}. middle lacks build.
# middle is reconnected (no preds → bottom runs independently).
# Result: bottom#build only.
[[plan]]
compact = true
name = "filter entry lacks task dependency has it"
args = ["run", "--filter", "@test/middle...", "build"]
# Same as above but via -t flag from the package that lacks the task.
# middle has no build, but its dependency bottom does.
# Result: bottom#build only.
[[plan]]
compact = true
name = "transitive from package without task"
args = ["run", "-t", "build"]
cwd = "packages/middle"
# -t with package#task: middle has no build, but its dep bottom does.
# Equivalent to --filter @test/middle... build.
# Result: bottom#build only.
[[plan]]
compact = true
name = "transitive with package specifier lacking task"
args = ["run", "-t", "@test/middle#build"]
# -d from top: direct deps are {middle}. middle lacks build → empty.
# Unlike -t which walks transitively through middle to find bottom.
[[plan]]
compact = true
name = "direct from top stops at direct deps"
args = ["run", "-d", "build"]
cwd = "packages/top"
# -d from middle: direct dep is {bottom}. bottom has build → bottom#build.
[[plan]]
compact = true
name = "direct from middle finds direct dep"
args = ["run", "-d", "build"]
cwd = "packages/middle"