Skip to content

Commit

Permalink
test: use builtin github reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Feb 26, 2025
1 parent 6a5e2c9 commit a6d5f38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 68 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@
"typescript-eslint": "8.24.1",
"vite": "5.4.14",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.0.6",
"vitest-github-actions-reporter": "0.11.1"
"vitest": "3.0.6"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
62 changes: 0 additions & 62 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
import { env } from 'node:process';
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';
import GitHubActionsReporter from 'vitest-github-actions-reporter';

const ci = !!env.CI;

export default defineConfig({
plugins: [tsconfigPaths()],
test: {
coverage: {
provider: 'v8',
reporter: ci ? ['lcovonly', 'text'] : ['html', 'text'],
include: ['src/cli/**/*.ts', '!**/__mocks__/**', '!**/types.ts'],
},
reporters: ci
? ['default', new GitHubActionsReporter()]
: ['default', 'html'],
reporters: ci ? ['default', 'github-actions'] : ['default', 'html'],
restoreMocks: true,
setupFiles: './test/global-setup.ts',
deps: { moduleDirectories: ['node_modules', '.yarn/'] },
Expand Down

0 comments on commit a6d5f38

Please sign in to comment.