|
1 | | -import type { ModuleGraphData, RunnerTestFile, SerializedConfig } from 'vitest' |
| 1 | +import type { ModuleGraphData, RunnerTestFile, SerializedRootConfig } from 'vitest' |
2 | 2 | import type { HTMLOptions, Reporter, Vitest } from 'vitest/node' |
3 | 3 | import { existsSync, promises as fs } from 'node:fs' |
4 | 4 | import { fileURLToPath } from 'node:url' |
@@ -29,8 +29,7 @@ function getOutputFile(config: PotentialConfig | undefined) { |
29 | 29 | interface HTMLReportData { |
30 | 30 | paths: string[] |
31 | 31 | files: RunnerTestFile[] |
32 | | - config: SerializedConfig |
33 | | - projects: string[] |
| 32 | + config: SerializedRootConfig |
34 | 33 | moduleGraph: Record<string, Record<string, ModuleGraphData>> |
35 | 34 | unhandledErrors: unknown[] |
36 | 35 | // filename -> source |
@@ -69,9 +68,8 @@ export default class HTMLReporter implements Reporter { |
69 | 68 | const result: HTMLReportData = { |
70 | 69 | paths: this.ctx.state.getPaths(), |
71 | 70 | files: this.ctx.state.getFiles(), |
72 | | - config: this.ctx.getRootProject().serializedConfig, |
| 71 | + config: this.ctx.serializedRootConfig, |
73 | 72 | unhandledErrors: this.ctx.state.getUnhandledErrors(), |
74 | | - projects: this.ctx.projects.map(p => p.name), |
75 | 73 | moduleGraph: {}, |
76 | 74 | sources: {}, |
77 | 75 | } |
|
0 commit comments