Commit f8368cf
committed
tests: clean prepost artifacts in setup so verifyPath proves creation
project-prepost.test.ts checks that i-was-created.txt (extension) and
input-files.txt/output-files.txt (issue-10828) exist after render, but
only removed them in teardown. Those are fixed repo paths, so a run that
crashes between creating them and teardown leaves a stale copy — after
which a regression that stops the render creating them still passes
verifyPath. Add setup cleanup (matching the safeRemoveIfExists the file
already uses in teardown) so each verifyPath proves this render wrote the
file, not a leftover. Also clears i-exist.txt up front so pre-render's
"must not exist" guard starts clean after a prior crashed run.1 parent 2d99991 commit f8368cf
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
| |||
100 | 107 | | |
101 | 108 | | |
102 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
103 | 116 | | |
104 | 117 | | |
105 | 118 | | |
| |||
0 commit comments