MCPcopy Create free account
hub / github.com/tinyplex/tinybase / onTestRunEnd

Method onTestRunEnd

test/vitest/reporter.ts:19–31  ·  view source on GitHub ↗
(
    testModules: ReadonlyArray<TestModule>,
    unhandledErrors: ReadonlyArray<SerializedError>,
    reason: TestRunEndReason,
  )

Source from the content-addressed store, hash-verified

17 }
18
19 async onTestRunEnd(
20 testModules: ReadonlyArray<TestModule>,
21 unhandledErrors: ReadonlyArray<SerializedError>,
22 reason: TestRunEndReason,
23 ) {
24 super.onTestRunEnd(testModules, unhandledErrors, reason);
25 this.ctx.logger.log(`\nTotal Assertions: ${this.assertions}`);
26 await writeFile(
27 './tmp/counts.json',
28 JSON.stringify({tests: this.tests, assertions: this.assertions}),
29 'utf8',
30 );
31 }
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected