@lucid-softworks/vitest-config
v0.1.1
Published
Shared Vitest testing, coverage, and benchmark configuration.
Readme
@lucid-softworks/vitest-config
The shared Vitest policy for Lucid Softworks packages. It enforces 100% line,
branch, function, and statement coverage for src/**/*.ts, discovers package
benchmarks, and exposes the shared public-API benchmark harness.
// vitest.config.ts
export { default } from "@lucid-softworks/vitest-config";// benchmark/index.bench.ts
import { benchmarkPublicApi } from "@lucid-softworks/vitest-config/benchmark";
import * as publicApi from "../src/index.js";
benchmarkPublicApi("@lucid-softworks/example", publicApi);Set VITEST_BENCHMARK_SMOKE=1 to execute minimal one-millisecond samples when
validating that benchmark files load successfully.
