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.
This commit is contained in:
Andy Aragon
2026-06-29 15:03:32 +03:00
committed by Formsmith
parent a0fa3559b3
commit f18bacf3ad
4 changed files with 258 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@ describe("project export filenames", () => {
it("uses the project name for each supported export format", () => {
expect(projectExportFileName("Gearbox Prototype", "stl")).toBe("Gearbox Prototype.stl");
expect(projectExportFileName("Gearbox Prototype", "obj")).toBe("Gearbox Prototype.obj");
expect(projectExportFileName("Gearbox Prototype", "step")).toBe("Gearbox Prototype.step");
});
it("removes filesystem-reserved characters without discarding the project name", () => {