Repository navigation
Commit a1d9d24
committed
test(write-to-file): stream the preview before asserting the denial cleanup
One review row on #2434 read against head 725b8a3:
- writeToFileTool.spec.ts:1133 (Trivial, Maintainability & Code Quality): hasPathStabilized
ForTask() records the path on the first delta and only stabilises on the second matching
one, so the rooignore-denial test was checking discardUnapprovedStream and reset against
a diff view that was never opened. Send a second matching delta first, assert open() and
update() ran, and pin the streamed preview before the denial cleanup in call order.
Gates run in this worktree against this commit:
- pnpm --dir src exec vitest run core/tools/__tests__/writeToFileTool.spec.ts
-> 1 test file passed, 79 tests passed, 5 skipped.
- pnpm --dir src exec eslint --max-warnings=0 core/tools/__tests__/writeToFileTool.spec.ts -> clean.
- pnpm --dir src exec prettier --write/--check on the same file -> clean.
- src/eslint-suppressions.json untouched.
Not run here: knip, compile, e2e-mock, platform-unit-test matrices, mutation-diff, codecov.
No mutant was executed against this suite locally by this lane.1 parent 725b8a3 commit a1d9d24
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1130 | 1130 | | |
1131 | 1131 | | |
1132 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1133 | 1136 | | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
1134 | 1141 | | |
1135 | 1142 | | |
1136 | 1143 | | |
1137 | 1144 | | |
1138 | 1145 | | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1139 | 1150 | | |
1140 | 1151 | | |
1141 | 1152 | | |
| |||
0 commit comments