0.11.1 • Published 6 months ago

vitest-github-actions-reporter v0.11.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

0.11.0

6 months ago

0.11.1

6 months ago

0.10.0

1 year ago

0.9.0

2 years ago

0.8.3

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.5.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago