Files
snapcad-studio/tests/vitest.e2e.config.ts
Andy Aragon f18bacf3ad test: add STEP export/import unit and headless E2E coverage
- Unit: cover the kernel-free helpers (shapeYawDegrees, worldAabb,
  aabbsOverlap) and the new "step" export filename.
- E2E: drive the real exportShapesToStep/importedShapeFromStep against
  the actual OpenCascade kernel (loaded from node_modules), asserting
  primitives, holes, AABB gating, cones, and import->re-export all
  conserve volume. Add tests/vitest.e2e.config.ts and a test:e2e script.
2026-06-29 15:03:32 +03:00

20 lines
394 B
TypeScript

import path from "node:path";
import { defineConfig } from "vitest/config";
const rootDir = path.resolve(__dirname, "..");
export default defineConfig({
root: rootDir,
resolve: {
alias: {
"@": path.resolve(rootDir, "apps/web/src"),
},
},
test: {
environment: "node",
include: ["tests/e2e/**/*.e2e.ts"],
testTimeout: 120000,
hookTimeout: 120000,
},
});