18 lines
520 B
TypeScript
18 lines
520 B
TypeScript
import path from "node:path";
|
|
import { defineConfig, mergeConfig } from "vitest/config";
|
|
import { nodeVitestConfig } from "@repo/core-typescript/vitest.base.node";
|
|
|
|
export default mergeConfig(
|
|
nodeVitestConfig,
|
|
defineConfig({
|
|
test: {
|
|
include: ["src/**/*.test.{ts,tsx}", "tests/**/*.test.{ts,tsx}"],
|
|
environmentMatchGlobs: [["**/*.test.tsx", "jsdom"]],
|
|
setupFiles: ["@repo/core-testing/setup/jsdom"],
|
|
},
|
|
resolve: {
|
|
alias: { "@": path.resolve(__dirname, "./src") },
|
|
},
|
|
}),
|
|
);
|