1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 14:41:59 +00:00
immich/e2e/vitest.config.ts

23 lines
478 B
TypeScript
Raw Normal View History

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