UNPKG

@dudousxd/nestjs-diagnostics

Version:

A standard convention for @dudousxd/nestjs-* libs to emit observability events over node:diagnostics_channel.

13 lines • 739 B
/** * Anti-drift latch for contract tests: asserts that EVERY token a lib exports * follows the canonical `@dudousxd/nestjs-<lib>:<name>` naming. Because * `Symbol.for(k).description === k`, checking the `description` prefix is enough — * no identity comparison needed. Throws an error that NAMES the offending export, * turning drift into a red test. * * It checks the NAME, not the provenance: a symbol spelled by hand with the right * prefix passes exactly like one built by `capability(lib, ...)`. That is the * point — the canonical name is the contract, not the factory call. */ export declare function assertCapabilityNaming(lib: string, tokens: Record<string, symbol>): void; //# sourceMappingURL=conformance.d.ts.map