[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

ci: use minimal reporter in this repo in CI (#10458)

authored by

Vladimir and committed by
GitHub
(May 26, 2026, 4:24 PM +0200) a303fecb 5c5baee6

+5 -7
+1 -1
test/coverage-test/vitest.config.ts
··· 12 12 13 13 export default defineConfig({ 14 14 test: { 15 - reporters: 'verbose', 15 + reporters: process.env.CI ? 'minimal' : 'verbose', 16 16 isolate: false, 17 17 setupFiles: ['./setup.ts'], 18 18 projects: [
+1 -1
test/e2e/vitest.config.ts
··· 5 5 export default defineConfig({ 6 6 test: { 7 7 reporters: [ 8 - 'verbose', 8 + process.env.CI ? 'minimal' : 'verbose', 9 9 (process.env.VITEST_CI_BLOB_LABEL 10 10 ? ['blob', { label: process.env.VITEST_CI_BLOB_LABEL }] 11 11 : {}),
+2 -4
test/unit/vite.config.ts
··· 127 127 includeTaskLocation: true, 128 128 reporters: [ 129 129 ...(process.env.GITHUB_ACTIONS 130 - ? [['default'], ['github-actions', { displayAnnotations: false }] as any] 130 + ? [['minimal'], ['github-actions', { displayAnnotations: false }] as any] 131 131 : [['default', { summary: true }], ['hanging-process']]), 132 132 ...(process.env.VITEST_CI_BLOB_LABEL 133 133 ? [['blob', { label: process.env.VITEST_CI_BLOB_LABEL }]] ··· 176 176 alias: [ 177 177 { 178 178 find: 'test-alias', 179 - replacement: '', 180 - // vitest doesn't crash because function is defined 181 - customResolver: () => resolve(import.meta.dirname, 'src', 'aliased-mod.ts'), 179 + replacement: resolve(import.meta.dirname, 'src', 'aliased-mod.ts'), 182 180 }, 183 181 ], 184 182 onConsoleLog(log) {
+1 -1
test/e2e/test/public.test.ts
··· 10 10 expect(vitestConfig.mode).toBe('test') 11 11 // inherits the root config 12 12 // TODO: test cwd loading behavior without relying on test/e2e/vitest.config.ts 13 - expect(vitestConfig.reporters.slice(0, 1)).toEqual([['verbose', {}]]) 13 + expect(vitestConfig.reporters.slice(0, 1)).toEqual([[process.env.CI ? 'minimal' : 'verbose', {}]]) 14 14 expect(viteConfig.plugins.find(p => p.name === 'vitest')).toBeDefined() 15 15 }) 16 16