Skip to content

fakeJobClock — @gj-kit/nest-operations-jobs

A public function from @gj-kit/nest-operations-jobs/testing. The signature below is taken directly from the 0.1.1 release declaration.

import { fakeJobClock } from '@gj-kit/nest-operations-jobs/testing';
/**
* Deterministic clock. `advance` fires every timer due in the interval, in order.
* `startMs` defaults to a fixed literal, never to the ambient wall clock: this
* package reads ambient time in `src/core/clock.ts` and nowhere else.
*/
declare function fakeJobClock(startMs?: number): FakeJobClock;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/nest-operations-jobs
  • Version: 0.1.1
  • Public entry: ./testing
  • Source: GitHub