Skip to content

Commit

Permalink
refactor: remove deprecated vitest's V.TaskContext
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoBiccheddu committed Feb 4, 2025
1 parent 8969205 commit a034e96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/vitest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export namespace Vitest {
export interface Test<R> {
<A, E>(
name: string,
self: TestFunction<A, E, R, [V.TaskContext<V.RunnerTestCase<{}>> & V.TestContext]>,
self: TestFunction<A, E, R, [V.TestContext]>,
timeout?: number | V.TestOptions
): void
}
Expand Down Expand Up @@ -75,7 +75,7 @@ export namespace Vitest {
R,
[
{ [K in keyof Arbs]: Arbs[K] extends FC.Arbitrary<infer T> ? T : Schema.Schema.Type<Arbs[K]> },
V.TaskContext<V.RunnerTestCase<{}>> & V.TestContext
V.TestContext
]
>,
timeout?:
Expand Down Expand Up @@ -113,7 +113,7 @@ export namespace Vitest {
arbitraries: Arbs,
self: (
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
ctx: V.TestContext
) => void,
timeout?:
| number
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/src/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const makeTester = <R>(
it: V.TestAPI = V.it
): Vitest.Vitest.Tester<R> => {
const run = <A, E, TestArgs extends Array<unknown>>(
ctx: V.TaskContext<V.RunnerTestCase<object>> & V.TestContext & object,
ctx: V.TestContext & object,
args: TestArgs,
self: Vitest.Vitest.TestFunction<A, E, R, TestArgs>
) => pipe(Effect.suspend(() => self(...args)), mapEffect, runTest(ctx))
Expand Down

0 comments on commit a034e96

Please sign in to comment.