Harden API test Docker setup and stabilize coverage fixtures

This commit is contained in:
Mike Cao committed 2026-09-11 19:22:28 -07:00
1 parent 2a5ef9d9e8
commit a3a7d4914b
7 files changed
+130 -11

No files matched your search

+7 -1
View File
@@ -19,7 +19,13 @@ export const RUNTIME_DIR = path.join(
);
export const COVERAGE_DIR = path.join(RUNTIME_DIR, 'coverage');
export const SEED_FILE = path.join(RUNTIME_DIR, 'seed.json');
export const OPENAPI_FILE = path.join(ROOT_DIR, 'public/openapi.json');
/**
* Coverage oracle: the OpenAPI document of the server under test, downloaded by
* global setup from `${BASE_URL}/openapi.json` (see tests/api/global-setup.ts).
*/
export const OPENAPI_FILE = path.join(RUNTIME_DIR, 'openapi.json');
/** Locally generated spec (`pnpm openapi:generate`), used only as a fallback. */
export const LOCAL_OPENAPI_FILE = path.join(ROOT_DIR, 'public/openapi.json');
const LOOPBACK_HOSTS = new Set(['localhost', '127.0.0.1', '[::1]', '::1']);