Skip to content

Commit

Permalink
fix: change deepMerge to fix duplicate reporters
Browse files Browse the repository at this point in the history
  • Loading branch information
Demivan committed Jan 29, 2022
1 parent 022f561 commit 92b7b59
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/vitest/src/utils/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ export function deepMerge<T extends object = object, S extends object = T>(targe

deepMerge(target[key] as any, source[key] as any)
}
else if (Array.isArray(source[key])) {
if (!target[key])
target[key] = [] as any

(target[key] as any).push(...source[key] as any)
}
else {
target[key] = source[key] as any
}
Expand Down

0 comments on commit 92b7b59

Please sign in to comment.