refactor
This commit is contained in:
@@ -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'),
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user