From 5ef3d58c6a49045c6c2aae54a5644f38151446bb Mon Sep 17 00:00:00 2001 From: Ben Hodgson Date: Thu, 24 Oct 2024 13:36:00 +0100 Subject: [PATCH] chore: Use Github Actions reporter if in workflow run --- vitest.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vitest.config.ts b/vitest.config.ts index b375e54..a910f24 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -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'] } });