Repository navigation
Commit 82f0a98
committed
test(extension): expect the landed profile record in the second argument
The propagation fix hands ClineProvider the record that actually landed in the
cross-instance section instead of a subset rebuilt from the payload, so
setConfiguration's second argument now carries savedProfileSettings. This spec
asserted that argument exactly, so it went red on CI's coverage shard
(platform-unit-test ubuntu-latest) while my local run of the edited file and of
the webview spec directory stayed green: the shard runs the package's own project
config and my file selection did not. The parent 82f44f8 does not send the key,
so this is the fourth pre-existing expectation our change moved, not a red we
inherited.
Negative control: with src/extension/api.ts and src/core/webview/ClineProvider.ts
checked out at 82f44f8 (byte-identical blobs, index reset, no stash) this case
fails with 'AssertionError: expected "vi.fn()" to be called with arguments:
[ ... (2) ]' and the reported diff drops the savedProfileSettings key, so the
expectation is load-bearing rather than decorative.
Spec-only change: __tests__ paths never count toward the mutation-diff line total,
so the 2128-vs-500 cap number is unaffected by this commit. There is no re-run
lever for the red leg (POST /actions/runs/<id>/rerun-failed-jobs returns 403
without admin rights), so this push doubles as the re-trigger for the required
contexts.1 parent 3414aa6 commit 82f0a98
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
0 commit comments