Some checks failed
Tests / Backend Tests (Python) (3.10) (push) Has been cancelled
Tests / Backend Tests (Python) (3.11) (push) Has been cancelled
Tests / Backend Tests (Python) (3.12) (push) Has been cancelled
Tests / Frontend Tests (JS) (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / All Tests Passed (push) Has been cancelled
37 lines
924 B
JavaScript
37 lines
924 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
// Use jsdom for DOM environment
|
|
environment: 'jsdom',
|
|
|
|
// Test file patterns
|
|
include: ['tests/frontend/**/*.test.{js,ts}'],
|
|
|
|
// Setup files
|
|
setupFiles: ['tests/frontend/setup.js'],
|
|
|
|
// Coverage configuration
|
|
// dashboard_core.js contains testable business logic extracted from main.js
|
|
// main.js is a browser script with DOM side effects - not included in coverage
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'html', 'lcov'],
|
|
include: ['app/dashboard_core.js'],
|
|
exclude: ['node_modules', 'tests', 'app/main.js'],
|
|
thresholds: {
|
|
statements: 80,
|
|
branches: 70,
|
|
functions: 70,
|
|
lines: 80,
|
|
},
|
|
},
|
|
|
|
// Globals like describe, it, expect
|
|
globals: true,
|
|
|
|
// Reporter
|
|
reporter: 'verbose',
|
|
},
|
|
});
|