Skip to content

Commit 663d5a1

Browse files
committed
feat(tests): github actions reporter
1 parent 7536752 commit 663d5a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vitest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import { defineConfig, mergeConfig } from 'vitest/config'
22
import viteConfig from './vite.config'
33

4+
const isGithubActions = process.env.GITHUB_ACTIONS === 'true'
5+
46
export default mergeConfig(
57
viteConfig,
68
defineConfig({
79
test: {
10+
reporters: isGithubActions ? 'github-actions' : 'tree',
811
setupFiles: './setupTests.ts',
912
environment: 'happy-dom',
1013
},

0 commit comments

Comments
 (0)