Skip to content

Commit

Permalink
fix vitest .prop with objects
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Dec 22, 2024
1 parent 8250215 commit 23d5577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export const prop: Vitest.Vitest.Methods["prop"] = (name, arbitraries, self, tim
return V.it(
name,
// @ts-ignore
(ctx) => fc.assert(fc.property(arbs, (...as) => self(as[0], ctx)), check),
(ctx) => fc.assert(fc.property(arbs, (as) => self(as, ctx)), isObject(timeout) ? timeout?.fastCheck : {}),
timeout
)
}
Expand Down

0 comments on commit 23d5577

Please sign in to comment.