mirror of
https://github.com/immich-app/immich.git
synced 2026-03-22 13:59:25 +03:00
24 lines
534 B
JavaScript
24 lines
534 B
JavaScript
import { dirname, resolve } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
const serverRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
name: 'server:medium',
|
|
root: serverRoot,
|
|
globals: true,
|
|
include: ['test/medium/**/*.spec.ts'],
|
|
globalSetup: ['test/medium/globalSetup.ts'],
|
|
server: {
|
|
deps: {
|
|
fallbackCJS: true,
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
},
|
|
});
|