Commit 4adee96
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 22b38d2 commit 4adee96
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 | | |
| |||
973 | 979 | | |
974 | 980 | | |
975 | 981 | | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
976 | 992 | | |
977 | 993 | | |
978 | 994 | | |
| |||
1105 | 1121 | | |
1106 | 1122 | | |
1107 | 1123 | | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1108 | 1134 | | |
1109 | 1135 | | |
1110 | 1136 | | |
| |||
1128 | 1154 | | |
1129 | 1155 | | |
1130 | 1156 | | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1131 | 1167 | | |
1132 | 1168 | | |
1133 | 1169 | | |
| |||
0 commit comments