build(stencil): initialize stencil workspace

This commit is contained in:
2026-07-12 13:43:50 +02:00
parent 8e38146cb0
commit ff9d18610c
19 changed files with 526 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
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' }],
},
},
},
],
},
});