()
| 402 | } |
| 403 | |
| 404 | public async enableCoverage(): Promise<void> { |
| 405 | this.configOverride.coverage = {} as any |
| 406 | this.configOverride.coverage!.enabled = true |
| 407 | await this.createCoverageProvider() |
| 408 | await this.coverageProvider?.onEnabled?.() |
| 409 | |
| 410 | // onFileTransform is the only thing that affects hash |
| 411 | if (this.coverageProvider?.onFileTransform) { |
| 412 | this.clearAllCachePaths() |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | public disableCoverage(): void { |
| 417 | this.configOverride.coverage ??= {} as any |
no test coverage detected