Skip to content

Commit

Permalink
chore: Use Github Actions reporter if in workflow run
Browse files Browse the repository at this point in the history
  • Loading branch information
benhodgson87 committed Oct 24, 2024
1 parent bc995a6 commit 5ef3d58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
include: ['src/**/*.{test,spec}.?(c|m)[jt]s?(x)']
include: ['src/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
reporters: process.env.GITHUB_ACTIONS ? ['github-actions'] : ['default']
}
});

0 comments on commit 5ef3d58

Please sign in to comment.