tcmts.core.test.golden

CORPUS string
Definitions covering most syntax, whose hashes PINNED pins (as text: the test writes it to a file to analyze).
PINNED Record<string, string>
What the corpus hashes to. A failure means the hash format changed: if that was meant, bump IR_VERSION (hash.ts) and re-pin; if not, it's a bug (a TypeScript release that changed how code parses, say).
testClassesAreNominal () => void
Classes are nominal: their name is part of the hash.
testHashFormatIsPinned () => void
The hash format is pinned.
testModuleSideEffectsAreRefused () => void
Importing a module with top-level side effects is refused, with a reason.