tcmts.cli.test.e2e.vitest

setUp () => { dir: string; run: (...args: string[]) => { status: number | null; out: string; }; tcm: (...…
A new codebase with no scratch file.
testDomTypesLeaveTestsInNode () => void
A test whose code names DOM types only as types (`el: Element`, `as HTMLElement`, `Array<Node>`) runs in Node, where the rest of its code (node:fs) runs: types are erased, so they don't need a browser.
testVitestInChrome () => void
Vitest: a test that renders a component with state runs in Chrome, and reaches server functions by hash.
testVitestInNode () => void
Vitest: expect, vi and diffs in Node, nothing installed, results cached by hash.
testWrittenOutCodeLeavesTestsInNode () => void
A test reaching code that writes a browser function's source into a file (`${lazyImages}`) runs in Node, where the rest of its code (node:fs) runs: writing the function out doesn't run it. A test that does call a browser function runs in Chrome, and when it can't load there it says what put it there.