@repo/vitest-config provides shared Vitest configuration presets for the monorepo. It includes base (Node environment, matches src/**/*.test.*) and react (extends base with jsdom and @vitejs/plugin-react), plus shared mock utilities and setup files under the mocks and setup-files export subpaths.
graph TD
vitestconfig["@repo/vitest-config"]
vitestconfig -.-> tsconfig["@repo/typescript-config"]import { defineConfig } from "@repo/vitest-config/base";
export default defineConfig();
For React packages:
import { defineConfig } from "@repo/vitest-config/react";
export default defineConfig();
| Script | Description |
|---|---|
check-types |
Runs tsc --noEmit to typecheck the package. |