()
| 66 | } |
| 67 | |
| 68 | async flush(): Promise<void> { |
| 69 | const filePath = eventsJsonPath(this.cacheDir); |
| 70 | const body = JSON.stringify(this.scopes, null, 2); |
| 71 | await fs.writeFile(filePath, body, 'utf8'); |
| 72 | } |
| 73 | |
| 74 | async clear(): Promise<void> { |
| 75 | await fs.unlink(eventsJsonPath(this.cacheDir)); |
no test coverage detected