runtipi/vitest.workspace.ts
2023-06-28 23:10:45 +02:00

16 lines
396 B
TypeScript

import { defineWorkspace } from 'vitest/config';
import tsconfigPaths from 'vite-tsconfig-paths';
export default defineWorkspace([
{
plugins: [tsconfigPaths()],
test: {
globals: true,
name: 'server',
root: './src/server',
environment: 'node',
include: ['./services/auth/auth.service.test.ts'],
setupFiles: ['./tests/vite.setup.ts'],
},
},
]);