(snapshotPath)
| 245 | vitest.snapshot.add(snapshot) |
| 246 | }, |
| 247 | async readSnapshotFile(snapshotPath) { |
| 248 | checkFileAccess(snapshotPath) |
| 249 | if (!existsSync(snapshotPath)) { |
| 250 | return null |
| 251 | } |
| 252 | return fs.readFile(snapshotPath, 'utf-8') |
| 253 | }, |
| 254 | async saveSnapshotFile(id, content) { |
| 255 | checkFileAccess(id) |
| 256 | if (!canWrite(project)) { |
nothing calls this directly
no test coverage detected