Skip to content

StoreContractCase — @gj-kit/nest-notifications

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

import { StoreContractCase } from '@gj-kit/nest-notifications/testing';
interface StoreContractCase {
/** e.g. `'R11: a losing createDelivery reports created:false, never throws'`. */
readonly name: string;
readonly obligation: NotificationObligation;
/**
* The factory returns the suite under test. Typed as `NotificationStoreSuite`
* and not as `MemoryNotificationStores`, because the point of these cases is a
* host's own implementation: narrowing the parameter to the in-memory type
* would make the whole array a self-test toy.
*/
run(factory: () => NotificationStoreSuite | Promise<NotificationStoreSuite>): Promise<void>;
}

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-notifications
  • Version: 0.1.1
  • Public entry: ./testing
  • Source: GitHub