Test reporting fix

This commit is contained in:
Djuri 2023-11-23 02:41:58 +01:00
parent 98f6deb253
commit ee69816569
4 changed files with 39 additions and 11 deletions

View file

@ -1,6 +1,6 @@
import { sveltekit } from '@sveltejs/kit/vite';
//import { defineConfig } from 'vite';
import { defineConfig } from 'vitest/config';
import GithubActionsReporter from 'vitest-github-actions-reporter';
import * as fs from 'fs';
import * as path from 'path';
@ -73,6 +73,7 @@ export default defineConfig({
test: {
include: ['src/**/*.{test,spec}.{js,ts}'],
globals: true,
environment: 'jsdom'
environment: 'jsdom',
reporters: process.env.GITHUB_ACTIONS ? ['default', new GithubActionsReporter()] : 'default'
}
});