Function
maybeCaptureSnapshot
(
context: WebSmokeContext,
args: string[],
result: CliJsonResult,
)
Source from the content-addressed store, hash-verified
| 262 | } |
| 263 | |
| 264 | function maybeCaptureSnapshot( |
| 265 | context: WebSmokeContext, |
| 266 | args: string[], |
| 267 | result: CliJsonResult, |
| 268 | ): void { |
| 269 | if (args[0] !== 'snapshot' || result.status !== 0) return; |
| 270 | if (!Array.isArray(result.json?.data?.nodes)) return; |
| 271 | context.lastSnapshot = result.json; |
| 272 | } |
| 273 | |
| 274 | function failWithContext( |
| 275 | context: WebSmokeContext, |
Tested by
no test coverage detected