mirror of
https://github.com/immich-app/immich.git
synced 2026-02-11 03:17:59 +03:00
* feat: run maintance tests in isolation, share containers between all serial test suites * refactor: organize files --------- Co-authored-by: Jason Rasmussen <jason@rasm.me>
24 lines
503 B
TypeScript
24 lines
503 B
TypeScript
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:2285/api/server/ping');
|
|
} catch {
|
|
globalSetup.push('src/docker-compose.ts');
|
|
}
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['src/specs/server/**/*.e2e-spec.ts'],
|
|
globalSetup,
|
|
testTimeout: 15_000,
|
|
pool: 'threads',
|
|
poolOptions: {
|
|
threads: {
|
|
singleThread: true,
|
|
},
|
|
},
|
|
},
|
|
});
|