Skip to content

Commit

Permalink
Fix condictional
Browse files Browse the repository at this point in the history
  • Loading branch information
11joselu committed Dec 25, 2021
1 parent 0a8939e commit 151877f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/runtime/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function serializeError(val: any, seen = new WeakSet()): any {
if (typeof val.asymmetricMatch === 'function')
return `${val.toString()} ${format(val.sample)}`

if (!seen.has(val))
if (seen.has(val))
return val

seen.add(val)
Expand Down

0 comments on commit 151877f

Please sign in to comment.