/** * SMI-5479: `runWithEmissionGate` (AsyncLocalStorage emission gate) unit + * concurrency coverage. Sibling to `wrap.test.ts` (split per the 500-line file * gate); the pre-SMI-5479 module-`let` emission-gate cases stay in * `wrap.test.ts` §9 untouched, proving the retained fallback's zero churn. * * Covers: * - T5: `runWithEmissionGate` unit — basic emit/suppress, nested scopes * (inner shadows outer), auto-unwind on return AND on throw, * ALS-store-beats-module-`let` precedence, fallback to the module `let` * when no store is present, and the false-shadow pin * (`setEmissionGate(() => true)` + active `runWithEmissionGate(false, …)` * → zero emit — pins `??` vs `||` at the emit read; an accidental `||` * would leak emission from a consent-off call). * - T3: parallel no-bleed for the GATE (P-5 heart) — manually-resolved * promises interleave one scope's exit against an in-flight call in another * scope; the in-flight call still emits per ITS OWN scope. The committed * regression pin for the `wrap.ts` ALS-precedence read — it fails if that * read is ever reverted to consult the module `let` only. */ export {}; //# sourceMappingURL=wrap.gate.test.d.ts.map