13 lines · 397 B · TypeScript
RawDownload
import * as Effect from "effect/Effect";import * as Random from "effect/Random";import { TestClock } from "effect/testing"; export function provideDeterministicTestRuntime<A, E, R>(  effect: Effect.Effect<A, E, R>,  options: { readonly randomSeed?: number } = {},) {  return effect.pipe(    Effect.provide(TestClock.layer()),    Random.withSeed(options.randomSeed ?? 0x1234_5678),  );}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t