This commit is contained in:
1 parent
d5b0e42ac4
commit
63474a0933
1 file changed
+29
@@ -0,0 +1,29 @@
|
||||
import tsconfigPaths from "vite-tsconfig-paths";
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
projects: [
|
||||
{
|
||||
plugins: [tsconfigPaths()],
|
||||
esbuild: { jsx: "automatic" },
|
||||
test: {
|
||||
name: "node",
|
||||
environment: "node",
|
||||
include: ["src/**/*.test.ts"],
|
||||
exclude: ["**/node_modules/**", "src/components/**", "src/app/**/page.test.tsx"],
|
||||
},
|
||||
},
|
||||
{
|
||||
plugins: [tsconfigPaths()],
|
||||
esbuild: { jsx: "automatic" },
|
||||
test: {
|
||||
name: "jsdom",
|
||||
environment: "jsdom",
|
||||
include: ["src/components/**/*.test.tsx", "src/app/**/*.test.tsx"],
|
||||
setupFiles: ["./src/test/setup.ts"],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user