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:
16
vitest.config.js
Normal file
16
vitest.config.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import { resolve } from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
environment: 'node',
|
||||
include: ['tests/**/*.test.js'],
|
||||
setupFiles: ['tests/setup.js'],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'three/addons/controls/OrbitControls.js': resolve('tests/__mocks__/OrbitControls.js'),
|
||||
'three': resolve('tests/__mocks__/three.js'),
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user