@@ -10,10 +10,9 @@ import type { UserConfig } from "vite";
1010import { defineConfig } from "vitest/config" ;
1111import { BaseSequencer , type TestSpecification } from "vitest/node" ;
1212import { TEST_TIMEOUT } from "./test/constants" ;
13+ import { CustomDefaultReporter } from "./test/reporters/custom-default-reporter" ;
1314import { sharedConfig } from "./vite.config" ;
1415
15- const customReporterFile = "./test/reporters/custom-default-reporter.ts" as const ;
16-
1716// biome-ignore lint/style/noDefaultExport: required for vitest
1817export default defineConfig ( async config => {
1918 const viteConfig = await sharedConfig ( config ) ;
@@ -22,10 +21,10 @@ export default defineConfig(async config => {
2221 test : {
2322 passWithNoTests : false ,
2423 reporters : process . env . MERGE_REPORTS
25- ? [ "github-actions" , customReporterFile ]
24+ ? [ "github-actions" , new CustomDefaultReporter ( ) ]
2625 : process . env . GITHUB_ACTIONS
27- ? [ "blob" , customReporterFile ]
28- : [ customReporterFile ] ,
26+ ? [ "blob" , new CustomDefaultReporter ( ) ]
27+ : [ new CustomDefaultReporter ( ) ] ,
2928 env : {
3029 TZ : "UTC" ,
3130 } ,
@@ -57,7 +56,11 @@ export default defineConfig(async config => {
5756 coverage : {
5857 provider : "v8" ,
5958 reportsDirectory : "coverage" ,
60- reporter : process . env . MERGE_REPORTS ? [ "text-summary" , "json-summary" ] : [ ] ,
59+ reporter : process . env . MERGE_REPORTS
60+ ? [ "text-summary" , "json-summary" ]
61+ : process . env . GITHUB_ACTIONS
62+ ? [ ]
63+ : [ "text-summary" , "html" ] ,
6164 exclude : [ "{src,test}/**/*.d.ts" ] ,
6265 include : [ "src/**/*.ts" , "test/utils/**/*.ts" ] ,
6366 } ,
0 commit comments