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.
11 lines
261 B
JavaScript
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;
|
|
}
|
|
};
|
|
}
|