(snapshot: Snapshot)
| 213 | |
| 214 | // named by its content, so a build writing it again writes the same file |
| 215 | addSnapshot(snapshot: Snapshot): string { |
| 216 | const text = JSON.stringify(snapshot) |
| 217 | const id = hashOf(text) |
| 218 | this.write(`s-${id}`, text) |
| 219 | return id |
| 220 | } |
| 221 | |
| 222 | // one cut short or changed since it was written reads as missing, and is |
| 223 | // written again |
no test coverage detected