(ctx: Vitest, options: Options = {})
| 66 | private durationInterval: NodeJS.Timeout | undefined = undefined |
| 67 | |
| 68 | onInit(ctx: Vitest, options: Options = {}): void { |
| 69 | this.ctx = ctx |
| 70 | |
| 71 | this.options = { |
| 72 | verbose: false, |
| 73 | ...options, |
| 74 | } |
| 75 | |
| 76 | this.renderer = new WindowRenderer({ |
| 77 | logger: ctx.logger, |
| 78 | getWindow: () => this.createSummary(), |
| 79 | }) |
| 80 | |
| 81 | this.ctx.onClose(() => { |
| 82 | clearInterval(this.durationInterval) |
| 83 | this.renderer.stop() |
| 84 | }) |
| 85 | } |
| 86 | |
| 87 | onTestRunStart(specifications: ReadonlyArray<TestSpecification>): void { |
| 88 | this.runningModules.clear() |
nothing calls this directly
no test coverage detected