๐Ÿ“ฆ immich-app / immich

๐Ÿ“„ vitest.config.ts ยท 24 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24import { 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-info/ping');
} catch {
  globalSetup.push('src/setup/docker-compose.ts');
}

export default defineConfig({
  test: {
    include: ['src/{api,cli,immich-admin}/specs/*.e2e-spec.ts'],
    globalSetup,
    testTimeout: 15_000,
    pool: 'threads',
    poolOptions: {
      threads: {
        singleThread: true,
      },
    },
  },
});