(snapshotPath)
| 258 | vitest.snapshot.add(snapshot) |
| 259 | }, |
| 260 | async readSnapshotFile(snapshotPath) { |
| 261 | checkFileAccess(snapshotPath) |
| 262 | if (!existsSync(snapshotPath)) { |
| 263 | return null |
| 264 | } |
| 265 | return fs.readFile(snapshotPath, 'utf-8') |
| 266 | }, |
| 267 | async saveSnapshotFile(id, content) { |
| 268 | checkFileAccess(id) |
| 269 | if (!canWrite(project)) { |
nothing calls this directly
no test coverage detected