@ux-ui/vitest-runner
v0.1.0
Published
Vitest launcher with Windows drive-letter normalization for the ux-ui-pro npm portfolio (assembly.md §6/§7).
Maintainers
Readme
@ux-ui/vitest-runner
A thin Vitest launcher for the ux-ui-pro npm portfolio. It works around a
Windows-only Vitest 4 crash — Cannot read properties of undefined (reading 'config') — caused by
a drive-letter case mismatch (d: vs D:) in the ESM-resolved path (assembly.md §6/§7). On
Linux/macOS (and in CI) the normalization is a no-op.
This replaces the per-repo run-vitest.mjs scripts: the fix lives in one published dev-tool.
Installation
npm install -D @ux-ui/vitest-runner vitestvitest is a peer dependency — the consuming package owns its version.
Usage
In a package package.json:
{
"scripts": {
"test:unit": "vitest-runner run src"
}
}Arguments are forwarded verbatim to Vitest (vitest-runner run src, vitest-runner run tests,
vitest-runner --coverage, …). With no arguments it defaults to run (single, non-watch run).
License
MIT
