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.
This commit is contained in:
10
tests/setup.js
Normal file
10
tests/setup.js
Normal file
@@ -0,0 +1,10 @@
|
||||
// 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;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user