Skip to content

Commit

Permalink
build: add vitest-github-actions-reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Jun 30, 2023
1 parent 02c79ee commit ce75683
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { defineConfig, loadEnv } from "vite";
// import eslintPlugin from "vite-plugin-eslint";
import svgrPlugin from "vite-plugin-svgr";
import viteTsconfigPaths from "vite-tsconfig-paths";
import GithubActionsReporter from "vitest-github-actions-reporter";

/**
* @docs https://vitejs.dev/config/
Expand Down Expand Up @@ -61,6 +62,10 @@ export default defineConfig(({ mode }) => {
environment: "jsdom",
include: ["**/?(*.){test,spec}.?(c|m)[tj]s?(x)"],
setupFiles: ["./src/__tests__/setupTests.ts"],
reporters: [
"default",
...(process.env.GITHUB_ACTIONS ? [new GithubActionsReporter()] : []),
], // prettier-ignore
},

build: {
Expand Down

0 comments on commit ce75683

Please sign in to comment.