mirror of
https://github.com/meienberger/runtipi.git
synced 2024-11-09 16:38:04 +03:00
19 lines
502 B
TypeScript
19 lines
502 B
TypeScript
import { defineWorkspace, UserWorkspaceConfig } from 'vitest/config';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
|
|
type Plugin = Exclude<UserWorkspaceConfig['plugins'], undefined>[number];
|
|
|
|
export default defineWorkspace([
|
|
{
|
|
plugins: [tsconfigPaths() as Plugin],
|
|
test: {
|
|
globals: true,
|
|
name: 'server',
|
|
root: './src/server',
|
|
environment: 'node',
|
|
include: ['./services/auth/auth.service.test.ts'],
|
|
setupFiles: ['./tests/vite.setup.ts'],
|
|
},
|
|
},
|
|
]);
|