21 lines
486 B
TypeScript
21 lines
486 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const here = fileURLToPath(new URL('.', import.meta.url));
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@shared': path.resolve(here, 'shared'),
|
|
'@': path.resolve(here, 'src'),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
include: ['server/**/*.test.ts', 'scripts/**/*.test.ts'],
|
|
testTimeout: 20000,
|
|
hookTimeout: 20000,
|
|
},
|
|
});
|