// vitest.config.js
import { defineConfig } from "vitest/config";
import path from "node:path";

export default defineConfig({
	resolve: {
		alias: {
			"@": path.resolve(__dirname, "."),
		},
	},
	test: {
		environment: "node",
		include: ["**/*.test.{js,jsx}"],
		exclude: ["**/node_modules/**", "**/.git/**", "**/.next/**", "**/dist/**"],
		// Disable parallel threads so process.env changes don't interfere between files
		threads: false,
	},
});
