API reference › @evolu/common › Task › TestRunDefaultDeps
type TestRunDefaultDeps = Omit<
RunDefaultDeps,
"console" | "leakDetector" | "reportDefect" | "time"
> &
TestConsoleDep &
TestLeakDetectorDep &
TestReportDefectDep &
TestTimeDep &
RandomLibDep;
Defined in: packages/common/src/Task.ts:2183
Deterministic test variants of RunDefaultDeps.
The omitted console, leakDetector, reportDefect, and time are
replaced with test variants that add test controls such as
console.getEntriesSnapshot(), leakDetector.collect(),
reportDefect.next(), and time.advance(). nativeFetch, random, and
randomBytes keep their production types because their test implementations
add no extra API; they are just seeded or test-only fallbacks.
RandomLibDep is an addition, not a replacement. It is not part of
RunDefaultDeps; it exposes the seeded random library that drives all
test randomness. Tests use it directly as a deterministic random toolkit —
shuffling inputs and generating reproducible random data — and
testCreateRandomBytes derives random bytes from it, so everything flows
from one seed.