New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reporters don't work properly. (output result two times) #616
Comments
OMG I was just about to raise this! Sample repo here: https://github.com/robcaldecott/vitest-multiple-reporters-bug
|
My config looks like this:
|
Yes, we have problem with output file too, but file rewite himself |
same with built in reporters |
I think #644 broke it again. Need to add a test so it does not happen again. |
yep |
@Demivan only 0.2.5 broken |
bug happens only when you specify reporter as array |
Maybe we should just replace arrays by default and not merge them? We also get duplicates in deps.inline/exclude. |
Yeah. We need a separate method and not a deepMerge for this. |
|
Will do that and rename it to |
Describe the bug
json and junit reporters double their output in console. when you use output files everything works just fine.
i think its because
onFinished
hook work twice instead of one(tested it in custom reporter).i think
onFinished
don't should be called twhice on a single runReproduction
https://stackblitz.com/edit/vitest-dev-vitest-qtqq9f?file=vite.config.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: