20 lines
706 B
TypeScript
20 lines
706 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['tests/setup/vitest.setup.ts'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@gridpilot/shared-result': path.resolve(__dirname, 'packages/shared/result/Result.ts'),
|
|
'@gridpilot/automation': path.resolve(__dirname, 'packages/automation'),
|
|
'@gridpilot/automation/*': path.resolve(__dirname, 'packages/automation/*'),
|
|
'@gridpilot/testing-support': path.resolve(__dirname, 'packages/testing-support'),
|
|
'@': path.resolve(__dirname, 'apps/website'),
|
|
'@/*': path.resolve(__dirname, 'apps/website/*'),
|
|
},
|
|
},
|
|
}); |