This commit is contained in:
2025-12-11 21:06:25 +01:00
parent c49ea2598d
commit ec3ddc3a5c
227 changed files with 3496 additions and 2083 deletions

View File

@@ -6,6 +6,14 @@ export default defineConfig({
globals: true,
environment: 'jsdom',
setupFiles: ['tests/setup/vitest.setup.ts'],
include: ['tests/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
exclude: [
// Do not run library-internal tests from dependencies
'node_modules/**',
// Playwright-based smoke suite is executed via `npm run smoke:website`
// using Playwright CLI and must not be picked up by Vitest.
'tests/smoke/website-pages.spec.ts',
],
},
resolve: {
alias: {
@@ -16,6 +24,9 @@ export default defineConfig({
'@gridpilot/media': path.resolve(__dirname, 'packages/media'),
'@': path.resolve(__dirname, 'apps/website'),
'@/*': path.resolve(__dirname, 'apps/website/*'),
// Support TS-style "packages/*" imports used in tests
packages: path.resolve(__dirname, 'packages'),
'packages/*': path.resolve(__dirname, 'packages/*'),
},
},
});