Commit ae5f97d
Eric Wheeler
test: add safeWriteJson mock for transactional file operations
- Add vitest imports and mock safeWriteJson to support atomic transaction testing. This ensures file operations in tests are properly isolated and can be verified without actual filesystem interactions.
- Add fs/promises.access mock to prevent errors when checking file existence.
- Satisfy requirement that clineMessages must be defined for say/ask() to be valid
Signed-off-by: Eric Wheeler <[email protected]>1 parent 757a483 commit ae5f97d
1 file changed
+36
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
167 | 173 | | |
168 | 174 | | |
169 | 175 | | |
| |||
1037 | 1043 | | |
1038 | 1044 | | |
1039 | 1045 | | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1040 | 1056 | | |
1041 | 1057 | | |
1042 | 1058 | | |
| |||
1169 | 1185 | | |
1170 | 1186 | | |
1171 | 1187 | | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
1172 | 1198 | | |
1173 | 1199 | | |
1174 | 1200 | | |
| |||
1192 | 1218 | | |
1193 | 1219 | | |
1194 | 1220 | | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
1195 | 1231 | | |
1196 | 1232 | | |
1197 | 1233 | | |
| |||
0 commit comments