Skip to content

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

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

import { JobRunStoreContractOptions } from '@gj-kit/nest-operations-jobs/testing';
interface JobRunStoreContractOptions {
/** Skip cases an implementation legitimately cannot support, with a reason. */
readonly skip?: readonly JobRunStoreObligation[] | undefined;
/**
* Read one row back. `JobRunStore` has no reader, so the cases that can only
* be observed through stored values — S6's recorded timestamps, S7's JSON
* round trip — are omitted unless a host supplies this. Everything else,
* including all of S1-S4, is observable through the port alone.
*/
readonly inspect?: ((runId: string) => Promise<StoredJobRun | undefined>) | undefined;
/**
* How many concurrent calls the S1 burst case issues. Defaults to 8. The host
* must point this suite at a connection pool of at least 2: a single-connection
* client serialises the burst and hides a non-atomic claim.
*/
readonly concurrency?: number | undefined;
}

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