const { defineConfig } = require("vitest/config");

module.exports = defineConfig({
  test: {
    environment: "node",
    globals: true,
    include: [
      "./server/tests/**/*.{test,spec}.[jt]s", // Existing pattern for /server/tests
      "./server/**/*.test.js" // New pattern for test.js in server and subfolders
    ],
    exclude: ["**/client/**", "**/node_modules/**", "**/dist/**"] // Explicitly exclude /client
  }
});
