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 merge arrays (fix #725) #728

Merged
merged 1 commit into from Feb 11, 2022

Conversation

DerYeger
Copy link
Member

Closes #725

@netlify
Copy link

netlify bot commented Feb 10, 2022

✔️ Deploy Preview for vitest-dev ready!

🔨 Explore the source changes: 28475b7

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

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

@@ -3,7 +3,7 @@ import { deepMerge } from '../../../packages/vitest/src/utils'
import { deepMergeSnapshot } from '../../../packages/vitest/src/integrations/snapshot/port/utils'

describe('deepMerge', () => {
test('non plain objects retain their prototype, arrays are merging, plain objects are merging', () => {
test('non plain objects retain their prototype, arrays are not merging, plain objects are merging', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feature looks like a breaking change 🤔

@antfu antfu merged commit 92fb244 into vitest-dev:main Feb 11, 2022
chaii3 pushed a commit to chaii3/vitest that referenced this pull request May 13, 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.

Unexpected include config behaviour since 0.3.0
5 participants