From c9926402a41bf85e3991bafcc849163894f0fe8f Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 23 Dec 2024 11:13:34 +1300 Subject: [PATCH] fix vitest .prop with objects --- packages/vitest/src/internal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vitest/src/internal.ts b/packages/vitest/src/internal.ts index 83e1cb4c0a..ca17925523 100644 --- a/packages/vitest/src/internal.ts +++ b/packages/vitest/src/internal.ts @@ -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 ) }