2026-04-05 16:52:01 +02:00
|
|
|
import { defineConfig } from 'vitest/config';
|
2026-04-08 22:12:38 +02:00
|
|
|
import solid from 'vite-plugin-solid';
|
2026-04-05 16:52:01 +02:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
feat: comprehensive testing infrastructure
- Add vitest with solid plugin, coverage, jsdom environment
- Create MSW mocks for API responses in test setup
- Add unit test for ProfessionAdminListPage
- Add Playwright accessibility and visual regression configs
- Add sample accessibility and visual tests
- Add ESLint + Prettier configs with SolidJS rules
- Update scripts: test, test:coverage, test:accessibility, test:visual
- Add .gitignore entries for coverage, test-results, playwright-report, .vitest
- Install required dev dependencies: vitest, @solidjs/testing-library, msw, eslint, prettier, typescript, @axe-core/playwright, etc.
- Create .github/workflows/ci.yml with lint, test, coverage, e2e, accessibility, visual checks
This sets up full testing pipeline for admin frontend.
2026-04-08 02:38:17 +02:00
|
|
|
plugins: [solid()],
|
2026-04-05 16:52:01 +02:00
|
|
|
test: {
|
feat: comprehensive testing infrastructure
- Add vitest with solid plugin, coverage, jsdom environment
- Create MSW mocks for API responses in test setup
- Add unit test for ProfessionAdminListPage
- Add Playwright accessibility and visual regression configs
- Add sample accessibility and visual tests
- Add ESLint + Prettier configs with SolidJS rules
- Update scripts: test, test:coverage, test:accessibility, test:visual
- Add .gitignore entries for coverage, test-results, playwright-report, .vitest
- Install required dev dependencies: vitest, @solidjs/testing-library, msw, eslint, prettier, typescript, @axe-core/playwright, etc.
- Create .github/workflows/ci.yml with lint, test, coverage, e2e, accessibility, visual checks
This sets up full testing pipeline for admin frontend.
2026-04-08 02:38:17 +02:00
|
|
|
globals: true,
|
2026-04-08 22:12:38 +02:00
|
|
|
environment: 'node',
|
feat: comprehensive testing infrastructure
- Add vitest with solid plugin, coverage, jsdom environment
- Create MSW mocks for API responses in test setup
- Add unit test for ProfessionAdminListPage
- Add Playwright accessibility and visual regression configs
- Add sample accessibility and visual tests
- Add ESLint + Prettier configs with SolidJS rules
- Update scripts: test, test:coverage, test:accessibility, test:visual
- Add .gitignore entries for coverage, test-results, playwright-report, .vitest
- Install required dev dependencies: vitest, @solidjs/testing-library, msw, eslint, prettier, typescript, @axe-core/playwright, etc.
- Create .github/workflows/ci.yml with lint, test, coverage, e2e, accessibility, visual checks
This sets up full testing pipeline for admin frontend.
2026-04-08 02:38:17 +02:00
|
|
|
include: ['src/**/*.{test,spec}.{js,mjs,ts,tsx}', 'tests/vitest/**/*.spec.ts'],
|
2026-04-05 16:52:01 +02:00
|
|
|
coverage: {
|
|
|
|
|
provider: 'v8',
|
feat: comprehensive testing infrastructure
- Add vitest with solid plugin, coverage, jsdom environment
- Create MSW mocks for API responses in test setup
- Add unit test for ProfessionAdminListPage
- Add Playwright accessibility and visual regression configs
- Add sample accessibility and visual tests
- Add ESLint + Prettier configs with SolidJS rules
- Update scripts: test, test:coverage, test:accessibility, test:visual
- Add .gitignore entries for coverage, test-results, playwright-report, .vitest
- Install required dev dependencies: vitest, @solidjs/testing-library, msw, eslint, prettier, typescript, @axe-core/playwright, etc.
- Create .github/workflows/ci.yml with lint, test, coverage, e2e, accessibility, visual checks
This sets up full testing pipeline for admin frontend.
2026-04-08 02:38:17 +02:00
|
|
|
reporter: ['text', 'json', 'html', 'lcov'],
|
2026-04-05 16:52:01 +02:00
|
|
|
reportsDirectory: './test-results/vitest-coverage',
|
feat: comprehensive testing infrastructure
- Add vitest with solid plugin, coverage, jsdom environment
- Create MSW mocks for API responses in test setup
- Add unit test for ProfessionAdminListPage
- Add Playwright accessibility and visual regression configs
- Add sample accessibility and visual tests
- Add ESLint + Prettier configs with SolidJS rules
- Update scripts: test, test:coverage, test:accessibility, test:visual
- Add .gitignore entries for coverage, test-results, playwright-report, .vitest
- Install required dev dependencies: vitest, @solidjs/testing-library, msw, eslint, prettier, typescript, @axe-core/playwright, etc.
- Create .github/workflows/ci.yml with lint, test, coverage, e2e, accessibility, visual checks
This sets up full testing pipeline for admin frontend.
2026-04-08 02:38:17 +02:00
|
|
|
exclude: ['node_modules', 'dist', '.output', '**/*.d.ts'],
|
2026-04-05 16:52:01 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|