1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-01 09:51:16 +02:00
immich/e2e/vitest.config.ts

24 lines
553 B
TypeScript
Raw Normal View History

2024-02-19 19:03:51 +02:00
import { defineConfig } from 'vitest/config';
// skip `docker compose up` if `make e2e` was already run
const globalSetup: string[] = ['src/setup/auth-server.ts'];
try {
await fetch('http://127.0.0.1:2285/api/server-info/ping');
} catch {
globalSetup.push('src/setup/docker-compose.ts');
}
2024-02-19 19:03:51 +02:00
export default defineConfig({
test: {
include: ['src/{api,cli,immich-admin}/specs/*.e2e-spec.ts'],
globalSetup,
testTimeout: 15_000,
2024-07-31 17:26:35 +02:00
pool: 'threads',
2024-02-19 19:03:51 +02:00
poolOptions: {
threads: {
singleThread: true,
},
},
},
});