(suite: Suite)
| 152 | } |
| 153 | |
| 154 | async onBeforeRunSuite(suite: Suite): Promise<void> { |
| 155 | if (this.cancelRun) { |
| 156 | suite.mode = 'skip' |
| 157 | } |
| 158 | |
| 159 | // initialize snapshot state before running file suite |
| 160 | if (suite.mode !== 'skip' && 'filepath' in suite) { |
| 161 | await this.snapshotClient.setup( |
| 162 | suite.file.filepath, |
| 163 | this.workerState.config.snapshotOptions, |
| 164 | ) |
| 165 | } |
| 166 | |
| 167 | this.workerState.current = suite |
| 168 | } |
| 169 | |
| 170 | onBeforeTryTask(test: Task): void { |
| 171 | clearModuleMocks(this.config) |
no test coverage detected