( context: WebSmokeContext, step: string, args: string[], expectedStatus = 0, )
| 207 | } |
| 208 | |
| 209 | async function runStep( |
| 210 | context: WebSmokeContext, |
| 211 | step: string, |
| 212 | args: string[], |
| 213 | expectedStatus = 0, |
| 214 | ): Promise<CliJsonResult> { |
| 215 | const result = await runBuiltCliJson(args, context.env); |
| 216 | recordStep(context, step, args, result); |
| 217 | maybeCaptureSnapshot(context, args, result); |
| 218 | if (result.status !== expectedStatus) failWithContext(context, step, args, result); |
| 219 | return result; |
| 220 | } |
| 221 | |
| 222 | async function cleanupWebSmoke(context: WebSmokeContext, opened: boolean): Promise<void> { |
| 223 | const errors: unknown[] = []; |
no test coverage detected