Files
v10/packages/spf/vitest.config.ts
T
Christian PillsburyandGitHub 69852ddeb0 docs/spf fundamental concepts (#1396)
Feedback from @decepulis treated as a fast follow/incremental improvement effort for expediency.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-28 11:16:56 -07:00

62 lines
1.3 KiB
TypeScript

import { playwright } from '@vitest/browser-playwright';
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: 'media',
include: ['src/media/**/*.test.ts'],
},
},
{
extends: true,
test: {
name: 'dom',
include: ['src/dom/**/*.test.ts'],
browser: {
enabled: true,
headless: true,
provider: playwright(),
screenshotFailures: false,
instances: [{ browser: 'chromium' }],
},
},
},
{
extends: true,
test: {
name: 'types',
include: [],
typecheck: {
enabled: true,
checker: 'tsgo',
include: ['src/**/*.test-d.ts'],
},
},
},
],
},
});