yukey

vitest.config.ts

// Tests live beside the code they cover (src/foo.test.ts next to src/foo.ts).
// The default environment is plain node; a component test that needs a DOM
// says so itself with a per-file `// @vitest-environment jsdom` pragma,
// so pure-logic tests stay fast and the DOM dependency is visible where it's used.
import { defineConfig } from "vitest/config";

export default defineConfig({
	test: {
		environment: "node",
		include: ["src/**/*.test.ts"],
	},
});

packages/yukey/vitest.config.ts · 462 B · 76fc25b2da