Vitest reporter to create annotations when running tests in GitHub Actions
npm install vitest-github-actions-reporter !CI 
Vitest reporter to create annotations when running tests in GitHub Actions.
Thanks to jest-github-actions-reporter for ideas.
``shell`
npm i -D vitest-github-actions-reporter # yarn add -D vitest-github-actions-reporter
Add this reporter to vite.config.js / vite.config.ts.
`js
// 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.
_Default: true_ /home/runner/{repository name}
Trims / D:\a\{repository name} in stacktrace.false
The image below is a preview when it is .
!image
_Default: false_ true`.
Hides stacktrace in message.
The image below is a preview when it is
!image