tcmts.cli.test.e2e.import

Server

componentOf (dir: string, name: string) => string
hashOf (dir: string, name: string) => string
writeLibrary (lib: string) => void
A library written the way real ones are: bundler-style imports and the TypeScript features Node can't strip.

Tests

testImportFollowsPackageNamespaceReexports () => void
a package's namespace re-exported by a project module (`export * as v from "vitest"`) is imported as the package's
testImportGlobalAugmentation () => void
A `declare global` augmentation is a definition of its own (`<file>.global`) that every check in the codebase includes: code relying on it typechecks whether or not it imports the augmenting file, scratch files see it, and editing it checks the new version alone.
testImportLibrary () => void
import a library that uses enums, namespaces, parameter properties, namespace imports, module state, ts directives, statements setting up constants and namespaces of types beside an interface
testImportModuleAugmentation () => void
A module augmentation (`declare module "./schema" { namespace Annotations … }`) is a definition of its own (`<file>.augments`) that every check includes: code passing what it adds typechecks without importing it, its module is written to merge with the definition wherever that's rendered, and it's edited from a scratch file naming the definition's namespace (`declare module "#codebase/lib/schema"`).
testImportTestsCachedByHash () => void
--tests imports tests written as definitions; tcm test runs them, cached by hash
testProjectTypesFound () => void
a project's own @types are found from the project, wherever tcm runs