Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

elonehoo/vitest-plugin-github-actions

Repository files navigation

vitest-plugin-github-actions

NPM version

GitHub actions error and coverage reporter for vitest.


Install

pnpm install --save-dev vitest-plugin-github-actions

Config

// vitest.config.ts || vite.config.ts
// import { defineConfig } from 'vite'
import { defineConfig } from 'vitest/config'
import GitHubVitest from 'vitest-plugin-github-actions'

export default defineConfig({
  test: {
    reporters: process.env.GITHUB_ACTIONS
      ? ['default', new GitHubVitest()]
      : 'default',
  },
})

Credits

Thanks to:

License

MIT License © 2023 Elone Hoo

About

GitHub actions error and coverage reporter for vitest.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published