Working directory this run resolves against: relative inputs, bare-specifier resolution
inside the test bundle, and --before/--after hook paths. process.cwd() for the CLI;
the JS API's cwd option otherwise. Distinct from projectRoot, which is wherever
the nearest package.json sits — running from a subdirectory keeps that subdirectory's
node_modules on the resolution chain, exactly as Node itself would.
Usage
import { type Config } from "lib/types.ts";