(test: Test, error: SerializableError)
| 183 | }; |
| 184 | |
| 185 | const onFailure = async (test: Test, error: SerializableError) => { |
| 186 | if (watcher.isInterrupted()) { |
| 187 | return; |
| 188 | } |
| 189 | const testResult = buildFailureTestResult(test.path, error); |
| 190 | testResult.failureMessage = formatExecError( |
| 191 | testResult.testExecError, |
| 192 | test.context.config, |
| 193 | this._globalConfig, |
| 194 | test.path, |
| 195 | ); |
| 196 | addResult(aggregatedResults, testResult); |
| 197 | await this._dispatcher.onTestFileResult( |
| 198 | test, |
| 199 | testResult, |
| 200 | aggregatedResults, |
| 201 | ); |
| 202 | }; |
| 203 | |
| 204 | const updateSnapshotState = async () => { |
| 205 | const contextsWithSnapshotResolvers = await Promise.all( |
nothing calls this directly
no test coverage detected