async onRunComplete(testContexts, aggregatedResult) {
    const lostTests = aggregatedResult.numTotalTestSuites - aggregatedResult.testResults.length;

    await reportTestResults(aggregatedResult.testResults.map(r => ({
      success: !r.failureMessage,
      testFilePath: r.testFilePath,
      testExecError: r.testExecError,
      isPermanentFailure: lostTests > 0 || this._isPermanentFailure(r),
    })));
  }
@param {Set<import('@jest/reporters').TestContext>} testContexts
@param {import('@jest/reporters').AggregatedResult} aggregatedResult