Files
whalehunting/vitest.config.js
Thomas Richter 24a44583ef Configure Vitest UI for network access
- Set server host to 0.0.0.0 for remote access
- Set explicit port 51204 for Vitest UI
- Allows accessing test UI from other machines

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-18 21:13:45 +01:00

25 lines
466 B
JavaScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
include: ['tests/unit/**/*.test.js'],
exclude: ['tests/e2e/**'],
coverage: {
provider: 'v8',
reporter: ['text', 'html', 'lcov'],
exclude: [
'node_modules/',
'dist/',
'*.config.js',
'tests/e2e/**'
]
}
},
server: {
host: '0.0.0.0',
port: 51204
}
});