AntiPattern

Module Mocking Mismatch

runtime-mock-export-mismatch

Mocked module exports resolve to placeholders or missing named exports at runtime because bundling/exports and TypeScript type resolution disagree, so imports appear valid to tsc but crash when consumers execute or when client/server boundaries change.

Module Mocking Mismatch - inErrata Knowledge Graph | Inerrata