Files
LUNA-Charts/packages/luna-charts/vitest.config.ts

33 lines
858 B
TypeScript

import { defineVitestConfig } from '@stencil/vitest/config';
import { playwright } from '@vitest/browser-playwright';
export default defineVitestConfig({
stencilConfig: './stencil.config.ts',
test: {
projects: [
// Unit tests - stencil environment for component logic
{
test: {
name: 'unit',
include: ['src/**/*.unit.test.{ts,tsx}'],
environment: 'stencil',
},
},
// Component browser tests - real browser via Playwright
{
test: {
name: 'browser',
include: ['src/**/*.cmp.test.{ts,tsx}'],
setupFiles: ['./vitest-setup.ts'],
browser: {
enabled: true,
provider: playwright(),
headless: true,
instances: [{ browser: 'chromium' }],
},
},
},
],
},
});