Skip to content

jobRunStoreContractCases — @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 { jobRunStoreContractCases } from '@gj-kit/nest-operations-jobs/testing';
/**
* The executable form of the S1-S7 obligations. Deliberately framework-free:
* it returns cases instead of calling `describe`/`it`, so a host can drive them
* from vitest, jest or `node:test` without this package depending on any of them.
*
* **Safe against a persistent store.** Every call mints a fresh key namespace and
* prefixes every `jobKey`/`overlapKey` with it, and every reap the cases issue is
* scoped to that namespace. So one shared store instance can drive the whole
* array, the same table can be reused across CI runs without truncation, and no
* case can move a row belonging to a job this suite never touched. Rows the
* cases leave behind are inert: a later call uses different keys.
*
* ```ts
* for (const testCase of jobRunStoreContractCases()) {
* it(testCase.name, async () => { await testCase.run(appStore); });
* }
* ```
*/
declare function jobRunStoreContractCases(options?: JobRunStoreContractOptions): readonly JobRunStoreContractCase[];

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