Skip to content

Commit

Permalink
fix it.prop type signature (#4227)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukovanej authored Jan 13, 2025
1 parent d05d663 commit b514200
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-months-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/vitest": patch
---

Fix `it.prop` type signature.
18 changes: 2 additions & 16 deletions packages/vitest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export namespace Vitest {
name: string,
arbitraries: Arbs,
self: (
properties: { [K in keyof Arbs]: K extends FC.Arbitrary<infer T> ? T : Schema.Schema.Type<Arbs[K]> },
properties: { [K in keyof Arbs]: Arbs[K] extends FC.Arbitrary<infer T> ? T : Schema.Schema.Type<Arbs[K]> },
ctx: V.TaskContext<V.RunnerTestCase<{}>> & V.TestContext
) => void,
timeout?:
Expand Down Expand Up @@ -207,21 +207,7 @@ export const flakyTest: <A, E, R>(
/**
* @since 1.0.0
*/
export const prop: <const Arbs extends Vitest.Arbitraries>(
name: string,
arbitraries: Arbs,
self: (
properties: { [K in keyof Arbs]: K extends FC.Arbitrary<infer T> ? T : Schema.Schema.Type<Arbs[K]> },
ctx: V.TaskContext<V.RunnerTestCase<{}>> & V.TestContext
) => void,
timeout?:
| number
| V.TestOptions & {
fastCheck?: FC.Parameters<
{ [K in keyof Arbs]: Arbs[K] extends FC.Arbitrary<infer T> ? T : Schema.Schema.Type<Arbs[K]> }
>
}
) => void = internal.prop
export const prop: Vitest.Methods["prop"] = internal.prop

/**
* @since 1.0.0
Expand Down

0 comments on commit b514200

Please sign in to comment.