File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 11import { writeFile } from 'fs/promises' ;
2- import { TestCase } from 'vitest/node' ;
2+ import {
3+ SerializedError ,
4+ TestCase ,
5+ TestModule ,
6+ TestRunEndReason ,
7+ } from 'vitest/node' ;
38import { DefaultReporter } from 'vitest/reporters' ;
49
510export default class extends DefaultReporter {
@@ -11,8 +16,12 @@ export default class extends DefaultReporter {
1116 super . onTestCaseResult ( testCase ) ;
1217 }
1318
14- async onFinished ( ) {
15- super . onFinished ( ) ;
19+ async onTestRunEnd (
20+ testModules : ReadonlyArray < TestModule > ,
21+ unhandledErrors : ReadonlyArray < SerializedError > ,
22+ reason : TestRunEndReason ,
23+ ) {
24+ super . onTestRunEnd ( testModules , unhandledErrors , reason ) ;
1625 this . ctx . logger . log ( `\nTotal Assertions: ${ this . assertions } ` ) ;
1726 await writeFile (
1827 './tmp/counts.json' ,
You can’t perform that action at this time.
0 commit comments