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: do not mutate options to get api config (fix #616) #659

Merged
merged 1 commit into from Feb 1, 2022

Conversation

Demivan
Copy link
Member

@Demivan Demivan commented Jan 29, 2022

Fix #616

@netlify
Copy link

netlify bot commented Jan 29, 2022

✔️ Deploy Preview for vitest-dev ready!

🔨 Explore the source changes: 2d10f21

🔍 Inspect the deploy log: https://app.netlify.com/sites/vitest-dev/deploys/61f64b876e1f8a0008d04084

😎 Browse the preview: https://deploy-preview-659--vitest-dev.netlify.app

@Demivan Demivan mentioned this pull request Jan 29, 2022
@DerYeger
Copy link
Member

What about using a library like ts-deepmerge? It has an option to merge or replace arrays.

@Demivan
Copy link
Member Author

Demivan commented Jan 29, 2022

@DerYeger I want to get rid of merging altogether later.

@antfu
Copy link
Member

antfu commented Jan 30, 2022

Let's do a uniq to the reporters

@Demivan Demivan changed the title fix: change deepMerge to fix duplicate reporters (fix #616) fix: do not mutate options to get api config (fix #616) Jan 30, 2022
@Demivan
Copy link
Member Author

Demivan commented Jan 30, 2022

@antfu I have reverted changes to deepMerge. Instead I have changed code to not mutate Vitest config in place.

@patak-dev patak-dev merged commit 9504905 into vitest-dev:main Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reporters don't work properly. (output result two times)
4 participants