Files
zerobyte/vitest.config.ts
Nico 648ccae5fc test(integration): s3 repository with rustfs & rclone (#933)
* test(integration): s3 repository with rustfs

* ci: run integration tests before release

* chore: fix linting issue

* ci: persist-creds -> false
2026-06-01 21:37:12 +02:00

56 lines
1.1 KiB
TypeScript

import path from "node:path";
import { defineConfig } from "vitest/config";
export default defineConfig({
resolve: {
alias: {
"~": path.resolve(import.meta.dirname, "app"),
},
},
test: {
server: {
deps: {
inline: ["zod"],
},
},
projects: [
{
extends: true,
test: {
name: "server",
environment: "node",
include: ["app/**/*.test.ts", "app/**/*.test.tsx", "app/**/*.spec.ts", "app/**/*.spec.tsx"],
exclude: [
"app/client/**/*.test.ts",
"app/client/**/*.test.tsx",
"app/client/**/*.spec.ts",
"app/client/**/*.spec.tsx",
"app/test/integration/**/*.test.ts",
"app/test/integration/**/*.spec.ts",
],
setupFiles: ["./app/test/setup.ts"],
},
},
{
extends: true,
test: {
name: "client",
environment: "happy-dom",
environmentOptions: {
happyDOM: {
url: "http://localhost:3000",
},
},
include: [
"app/client/**/*.test.ts",
"app/client/**/*.test.tsx",
"app/client/**/*.spec.ts",
"app/client/**/*.spec.tsx",
],
setupFiles: ["./app/test/setup-client.ts"],
},
},
],
},
});