Skip to content

Non-deprecated way to get the full error message in a reporter? #19855

Answered by hi-ogawa
LukeAbby asked this question in Q&A
Discussion options

You must be logged in to vote

I think you are talking about Vitest reporter. If so, please post it here https://github.com/vitest-dev/vitest/discussions.


Assuming this is about Vitest reporter, you can use onTestRunEnd instead of onFinished to collect errors like in the example in the doc https://vitest.dev/advanced/api/reporters.html#ontestrunend

For example, https://stackblitz.com/edit/vitest-dev-vitest-rwfyz7qj?file=vite.config.ts

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LukeAbby
Comment options

Answer selected by LukeAbby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants