mirror of
https://github.com/zoriya/v10.git
synced 2026-08-15 02:14:06 +00:00
Co-authored-by: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com> Co-authored-by: Wesley Luyten <me@wesleyluyten.com>
49 lines
1.0 KiB
TypeScript
49 lines
1.0 KiB
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'html', 'lcov'],
|
|
include: ['src/**/*.ts'],
|
|
exclude: ['src/**/*.test.ts', 'src/**/*.d.ts'],
|
|
thresholds: {
|
|
lines: 80,
|
|
functions: 80,
|
|
branches: 80,
|
|
statements: 80,
|
|
},
|
|
},
|
|
projects: [
|
|
{
|
|
extends: true,
|
|
test: {
|
|
name: 'core',
|
|
include: ['src/core/**/*.test.ts'],
|
|
},
|
|
},
|
|
{
|
|
extends: true,
|
|
test: {
|
|
name: 'dom',
|
|
include: ['src/dom/**/*.test.ts'],
|
|
browser: {
|
|
enabled: true,
|
|
provider: 'playwright',
|
|
headless: true,
|
|
screenshotFailures: false,
|
|
instances: [{ browser: 'chromium' }],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
extends: true,
|
|
test: {
|
|
name: 'utils',
|
|
include: ['src/utils/**/*.test.ts'],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|