Commit b307055 1 parent a942ea7 commit b307055 Copy full SHA for b307055
File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
import type {
2
- File ,
3
2
ModuleGraphData ,
4
- Reporter ,
3
+ RunnerTestFile ,
5
4
SerializedConfig ,
6
- Vitest ,
7
5
} from 'vitest'
8
- import type { HTMLOptions } from 'vitest/node'
6
+ import type { HTMLOptions , Vitest } from 'vitest/node'
7
+ import type { Reporter } from 'vitest/reporters'
9
8
import { promises as fs } from 'node:fs'
10
9
import { fileURLToPath } from 'node:url'
11
10
import { promisify } from 'node:util'
@@ -34,7 +33,7 @@ function getOutputFile(config: PotentialConfig | undefined) {
34
33
35
34
interface HTMLReportData {
36
35
paths : string [ ]
37
- files : File [ ]
36
+ files : RunnerTestFile [ ]
38
37
config : SerializedConfig
39
38
moduleGraph : Record < string , Record < string , ModuleGraphData > >
40
39
unhandledErrors : unknown [ ]
@@ -75,7 +74,7 @@ export default class HTMLReporter implements Reporter {
75
74
const browser = resolvedConfig . browser . enabled && resolvedConfig . browser . ui
76
75
result . moduleGraph [ projectName ] ??= { }
77
76
result . moduleGraph [ projectName ] [ file . filepath ] = await getModuleGraph (
78
- this . ctx as any ,
77
+ this . ctx ,
79
78
projectName ,
80
79
file . filepath ,
81
80
browser ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : "../../../tsconfig.base.json" ,
3
+ "include" : [ "./*.ts" ]
4
+ }
Original file line number Diff line number Diff line change 25
25
"vitest" : [" ./packages/vitest/src/public/index.ts" ],
26
26
"vitest/globals" : [" ./packages/vitest/globals.d.ts" ],
27
27
"vitest/node" : [" ./packages/vitest/src/public/node.ts" ],
28
+ "vitest/reporters" : [" ./packages/vitest/src/public/reporters.ts" ],
28
29
"vitest/execute" : [" ./packages/vitest/src/public/execute.ts" ],
29
30
"vitest/config" : [" ./packages/vitest/src/public/config.ts" ],
30
31
"vitest/coverage" : [" ./packages/vitest/src/public/coverage.ts" ],
You can’t perform that action at this time.
0 commit comments