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.
17 lines
407 B
JavaScript
17 lines
407 B
JavaScript
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'),
|
|
}
|
|
}
|
|
});
|