Skip to content

Commit

Permalink
Update timeout parameter type in flakyTest function to accept `Du… (
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti authored May 29, 2024
1 parent c268928 commit 7348505
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fifty-stingrays-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/vitest": patch
---

Update `timeout` parameter type in `flakyTest` function to accept `DurationInput`
2 changes: 1 addition & 1 deletion packages/vitest/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const live = <E, A>(
*/
export const flakyTest = <A, E, R>(
self: Effect.Effect<A, E, R>,
timeout: Duration.Duration = Duration.seconds(30)
timeout: Duration.DurationInput = Duration.seconds(30)
) =>
pipe(
Effect.catchAllDefect(self, Effect.fail),
Expand Down

0 comments on commit 7348505

Please sign in to comment.