Socket
Socket
Sign inDemoInstall

vitest-github-actions-reporter

Package Overview
Dependencies
513
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vitest-github-actions-reporter

Vitest reporter to create annotations when running tests in GitHub Actions


Version published
Weekly downloads
10K
decreased by-11.42%
Maintainers
1
Install size
1.54 MB
Created
Weekly downloads
 

Readme

Source

vitest-github-actions-reporter

npm version CI MIT License

Vitest reporter to create annotations when running tests in GitHub Actions.

image

Thanks to jest-github-actions-reporter for ideas.

Install

npm i -D vitest-github-actions-reporter # yarn add -D vitest-github-actions-reporter

Usage

Add this reporter to vite.config.js / vite.config.ts.

// vite.config.js / vite.config.ts
import GithubActionsReporter from 'vitest-github-actions-reporter'

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

Then run vitest with GitHub Actions. That's all. GitHub Actions will do everything other.

Options

trimRepositoryPrefix

Default: true
Trims /home/runner/{repository name} / D:\a\{repository name} in stacktrace. The image below is a preview when it is false. image

hideStackTrace

Default: false
Hides stacktrace in message. The image below is a preview when it is true. image

Keywords

FAQs

Last updated on 30 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc