import { defineConfig } from "vitest/config";

/**
 * Engine tests run in plain Node, not jsdom.
 *
 * This config deliberately omits vite-plugin-solid: it switches the test
 * environment to jsdom for component testing, and the systems under test here
 * (physics, mover, sensors) touch no DOM. box3d-wasm is isomorphic, so these
 * exercise the same wasm the browser loads.
 */
export default defineConfig({
  test: {
    environment: "node",
    include: ["src/**/*.test.ts"],
    testTimeout: 30_000,
  },
});
