2026-03-04 08:20:43 -05:00
|
|
|
import { dirname, resolve } from 'node:path';
|
|
|
|
|
import { fileURLToPath } from 'node:url';
|
2024-10-09 10:00:40 -04:00
|
|
|
import swc from 'unplugin-swc';
|
|
|
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
|
|
2026-03-04 08:20:43 -05:00
|
|
|
const serverRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
|
|
|
|
|
2024-10-09 10:00:40 -04:00
|
|
|
export default defineConfig({
|
|
|
|
|
test: {
|
2026-03-04 08:20:43 -05:00
|
|
|
name: 'server:medium',
|
|
|
|
|
root: serverRoot,
|
2024-10-09 10:00:40 -04:00
|
|
|
globals: true,
|
|
|
|
|
include: ['test/medium/**/*.spec.ts'],
|
2025-02-25 11:31:07 -05:00
|
|
|
globalSetup: ['test/medium/globalSetup.ts'],
|
2024-10-09 10:00:40 -04:00
|
|
|
server: {
|
|
|
|
|
deps: {
|
|
|
|
|
fallbackCJS: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
plugins: [swc.vite(), tsconfigPaths()],
|
|
|
|
|
});
|