File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,9 @@ async function run(): Promise<void> {
123
123
// Read coverage file
124
124
const coverageFilePath = path . resolve ( coverageFile ) ;
125
125
if ( ! fs . existsSync ( coverageFilePath ) ) {
126
- core . setFailed ( `Coverage file not found: ${ coverageFilePath } ` ) ;
126
+ core . setFailed (
127
+ `coverage-summary.json file not found at path ${ coverageFilePath } . Did you forget to add the reporter in your vitest.config.js?`
128
+ ) ;
127
129
return ;
128
130
}
129
131
Original file line number Diff line number Diff line change @@ -7,6 +7,15 @@ export default defineConfig({
7
7
provider : "v8" ,
8
8
reporter : [ "text" , "json" ] ,
9
9
reportsDirectory : "./coverage" ,
10
+ clean : true ,
11
+ include : [ "test-src/**/*" , "src/v8.json.summary.reporter.ts" ] ,
12
+ exclude : [
13
+ "src/action.ts" ,
14
+ "action.ts" ,
15
+ "**/*.d.ts" ,
16
+ "dist/**" ,
17
+ "node_modules/**" ,
18
+ ] ,
10
19
} ,
11
20
reporters : [ "default" , new V8JSONSummaryReporter ( ) ] ,
12
21
} ,
You can’t perform that action at this time.
0 commit comments