vitest-github-actions-reporter
Vitest reporter to create annotations when running tests in GitHub Actions.
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
.
import GithubActionsReporter from 'vitest-github-actions-reporter'
export default {
test: {
reporters: process.env.GITHUB_ACTIONS ? new GithubActionsReporter() : 'default'
}
}
Then run vitest
with GitHub Actions.
That's all. GitHub Actions will do everything other.
Options
hideStackTrace
Hides stack trace in message.