- 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>
25 lines
466 B
JavaScript
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
|
|
}
|
|
});
|