Files
house-design/tests/setup.js
m 8ac5b3f1f9 Add test suite with 132 unit tests across all modules
Covers DesignState (40 tests), HouseRenderer (19), InteractionManager (24),
ThemeManager (8), ExportManager (11), and CatalogPanel (30). Uses vitest
with THREE.js mocks for browser-free testing.
2026-02-07 16:34:36 +01:00

11 lines
261 B
JavaScript

// Polyfill browser globals missing in Node.js
if (typeof globalThis.CustomEvent === 'undefined') {
globalThis.CustomEvent = class CustomEvent {
constructor(type, opts = {}) {
this.type = type;
this.detail = opts.detail || null;
}
};
}