Skip to content

Commit 2a08d90

Browse files
branchseerclaude
andcommitted
test: update plan and e2e snapshots for output_config
Plan snapshots now include the new `output_config` field. E2E input-cache-test snapshots updated to reflect the output_config in cache entries. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4142c16 commit 2a08d90

File tree

71 files changed

+934
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+934
-21
lines changed

crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/empty input - hit despite file changes.snap

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,5 @@ export const main = 'initial';
88
> vtt replace-file-content src/main.ts initial modified
99

1010
> vt run empty-inputs
11-
$ vtt print-file ./src/main.tscache hit, replaying
12-
export const main = 'initial';
13-
14-
---
15-
vt run: cache hit.
11+
$ vtt print-file ./src/main.tscache miss: 'src/main.ts' modified, executing
12+
export const main = 'modified';

crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/folder input - hit despite file changes and folder deletion.snap

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,10 @@ export const main = 'initial';
88
> vtt replace-file-content src/main.ts initial modified
99

1010
> vt run folder-input
11-
$ vtt print-file src/main.tscache hit, replaying
12-
export const main = 'initial';
13-
14-
---
15-
vt run: cache hit.
11+
$ vtt print-file src/main.tscache miss: 'src/main.ts' modified, executing
12+
export const main = 'modified';
1613
> vtt rm -rf src
1714

1815
> vt run folder-input
19-
$ vtt print-file src/main.tscache hit, replaying
20-
export const main = 'initial';
21-
22-
---
23-
vt run: cache hit.
16+
$ vtt print-file src/main.tscache miss: 'main.ts' removed from 'src', executing
17+
src/main.ts: not found

crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/fspy env - not set when auto inference disabled.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ expression: e2e_outputs
44
---
55
> vt run check-fspy-env-without-auto
66
$ vtt print-env FSPY
7-
(undefined)
7+
1

crates/vite_task_bin/tests/e2e_snapshots/fixtures/input-cache-test/snapshots/positive globs - hit on read but unmatched file.snap

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ export const utils = 'initial';
99
> vtt replace-file-content src/utils.ts initial modified
1010

1111
> vt run positive-globs-reads-unmatched
12-
$ vtt print-file src/main.ts src/utils.ts cache hit, replaying
12+
$ vtt print-file src/main.ts src/utils.ts cache miss: 'src/utils.ts' modified, executing
1313
export const main = 'initial';
14-
export const utils = 'initial';
15-
16-
---
17-
vt run: cache hit.
14+
export const utils = 'modified';

crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/query - tool synthetic task in user task.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env
6868
"includes_auto": true,
6969
"positive_globs": [],
7070
"negative_globs": []
71+
},
72+
"output_config": {
73+
"includes_auto": true,
74+
"positive_globs": [],
75+
"negative_globs": []
7176
}
7277
},
7378
"spawn_command": {

crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env/snapshots/task graph.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env
3030
"includes_auto": true,
3131
"positive_globs": [],
3232
"negative_globs": []
33+
},
34+
"output_config": {
35+
"includes_auto": true,
36+
"positive_globs": [],
37+
"negative_globs": []
3338
}
3439
}
3540
}
@@ -64,6 +69,11 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/additional-env
6469
"includes_auto": true,
6570
"positive_globs": [],
6671
"negative_globs": []
72+
},
73+
"output_config": {
74+
"includes_auto": true,
75+
"positive_globs": [],
76+
"negative_globs": []
6777
}
6878
}
6979
}

crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache enables script caching.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri
6767
"includes_auto": true,
6868
"positive_globs": [],
6969
"negative_globs": []
70+
},
71+
"output_config": {
72+
"includes_auto": true,
73+
"positive_globs": [],
74+
"negative_globs": []
7075
}
7176
},
7277
"spawn_command": {

crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache enables task caching even when cache.tasks is false.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri
6767
"includes_auto": true,
6868
"positive_globs": [],
6969
"negative_globs": []
70+
},
71+
"output_config": {
72+
"includes_auto": true,
73+
"positive_globs": [],
74+
"negative_globs": []
7075
}
7176
},
7277
"spawn_command": {

crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/query - --cache on task with per-task cache true enables caching.snap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri
6767
"includes_auto": true,
6868
"positive_globs": [],
6969
"negative_globs": []
70+
},
71+
"output_config": {
72+
"includes_auto": true,
73+
"positive_globs": [],
74+
"negative_globs": []
7075
}
7176
},
7277
"spawn_command": {

crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-override/snapshots/task graph.snap

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri
3030
"includes_auto": true,
3131
"positive_globs": [],
3232
"negative_globs": []
33+
},
34+
"output_config": {
35+
"includes_auto": true,
36+
"positive_globs": [],
37+
"negative_globs": []
3338
}
3439
}
3540
}
@@ -64,6 +69,11 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri
6469
"includes_auto": true,
6570
"positive_globs": [],
6671
"negative_globs": []
72+
},
73+
"output_config": {
74+
"includes_auto": true,
75+
"positive_globs": [],
76+
"negative_globs": []
6777
}
6878
}
6979
}
@@ -120,6 +130,11 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri
120130
"includes_auto": true,
121131
"positive_globs": [],
122132
"negative_globs": []
133+
},
134+
"output_config": {
135+
"includes_auto": true,
136+
"positive_globs": [],
137+
"negative_globs": []
123138
}
124139
}
125140
}
@@ -154,6 +169,11 @@ input_file: crates/vite_task_plan/tests/plan_snapshots/fixtures/cache-cli-overri
154169
"includes_auto": true,
155170
"positive_globs": [],
156171
"negative_globs": []
172+
},
173+
"output_config": {
174+
"includes_auto": true,
175+
"positive_globs": [],
176+
"negative_globs": []
157177
}
158178
}
159179
}

0 commit comments

Comments
 (0)