This commit is contained in:
2025-12-16 11:52:26 +01:00
parent ce82b7822b
commit 9a891ac8b3
586 changed files with 1320 additions and 1563 deletions

View File

@@ -9,25 +9,15 @@ export default defineConfig({
setupFiles: ['tests/setup/vitest.setup.ts'],
include: ['tests/**/*.{test,spec}.?(c|m)[jt]s?(x)', 'core/**/*.{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: {
'@gridpilot/shared-result': path.resolve(__dirname, 'core/shared/result/Result.ts'),
'@gridpilot/automation': path.resolve(__dirname, 'core/automation'),
'@gridpilot/automation/*': path.resolve(__dirname, 'core/automation/*'),
'@gridpilot/testing-support': path.resolve(__dirname, 'core/testing-support'),
'@gridpilot/media': path.resolve(__dirname, 'core/media'),
'@': path.resolve(__dirname, 'apps/website'),
'@/*': path.resolve(__dirname, 'apps/website/*'),
// Support TS-style "core/*" imports used in tests
packages: path.resolve(__dirname, 'packages'),
'core/*': path.resolve(__dirname, 'core/*'),
'@core': path.resolve(__dirname, './core'),
'@adapters': path.resolve(__dirname, './adapters'),
'@testing': path.resolve(__dirname, './testing'),
},
},
});