hrgui / vitest-github-actions-summary-reporter

Vitest reporter that will append test results to the GITHUB_STEP_SUMMARY file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

📝 vitest-github-actions-summary-reporter

Vitest reporter that will append test results to the GITHUB_STEP_SUMMARY file.

💿 Installation

pnpm i -D vitest-github-actions-summary-reporter ts-essentials

🔧 Configuration

Add new custom reporter vite.config.ts

import { defineConfig } from 'vitest/config'
import { GithubActionsReporter } from 'vitest-github-actions-summary-reporter'

export default defineConfig({
  test: {
    reporters: [new GithubActionsReporter()],
  },
})

About

Vitest reporter that will append test results to the GITHUB_STEP_SUMMARY file.

License:MIT License


Languages

Language:TypeScript 100.0%