Skip to content
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

fix: default reporters should be an array #720

Merged
merged 1 commit into from Feb 9, 2022

Commits on Feb 9, 2022

  1. fix: default reporters should be an array

    Fixes vitest-dev#718
    
    This fixes the error `TypeError: target[key].push is not a function` that occurs when a config is defined with reporters.
    This is because the deepMerge function tries to merge the given array of reporters with the default config, which is the string `"default"`.
    
    By fixing the default config to be an array of reporters, only containing the default one, the issue is fixed.
    cexbrayat committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    628d770 View commit details
    Browse the repository at this point in the history