(options: {
debug?: boolean;
verbose?: boolean;
reporter?: string[];
reportJunit?: string;
json?: boolean;
})
| 46 | } |
| 47 | |
| 48 | export async function createReplayTestReporterRuntime(options: { |
| 49 | debug?: boolean; |
| 50 | verbose?: boolean; |
| 51 | reporter?: string[]; |
| 52 | reportJunit?: string; |
| 53 | json?: boolean; |
| 54 | }): Promise<ReplayTestReporterRuntime> { |
| 55 | const reporters = await resolveReplayTestReporters({ |
| 56 | reporters: options.reporter, |
| 57 | reportJunit: options.reportJunit, |
| 58 | json: options.json, |
| 59 | }); |
| 60 | const context = createReplayTestReporterContext({ |
| 61 | debug: options.debug, |
| 62 | verbose: options.verbose, |
| 63 | }); |
| 64 | return { |
| 65 | reporters, |
| 66 | context, |
| 67 | onProgress(event) { |
| 68 | runReplayTestReporterProgress(reporters, event, context); |
| 69 | }, |
| 70 | }; |
| 71 | } |
| 72 | |
| 73 | function createReplayTestReporterContext(options: { |
| 74 | debug?: boolean; |
no test coverage detected