()
| 38 | } |
| 39 | |
| 40 | async clearCache(): Promise<void> { |
| 41 | if (this.cachePath && existsSync(this.cachePath)) { |
| 42 | await rm(this.cachePath, { force: true, recursive: true }) |
| 43 | this.logger.log('[cache] cleared results cache at', this.cachePath) |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | async readFromCache(): Promise<void> { |
| 48 | if (!this.cachePath) { |
no test coverage detected