Fix: make live test describe blocks conditional on RUN env vars (skip when not set)
This commit is contained in:
@@ -4,13 +4,14 @@ import { appendFileSync } from "node:fs";
|
||||
import { beforeAll, describe, expect, it } from "vitest";
|
||||
import { loadEnvForLiveTests } from "@/test/live-env";
|
||||
|
||||
const runLive = process.env.RUN_CATALOG_AUDIT_LIVE === "1";
|
||||
const LOG = "/tmp/catalog-audit-summary.log";
|
||||
const log = (msg: string) => {
|
||||
appendFileSync(LOG, `${msg}\n`);
|
||||
};
|
||||
|
||||
describe("catalog audit read-only summary", () => {
|
||||
describe("catalog audit read-only summary", {
|
||||
skip: process.env.RUN_CATALOG_AUDIT_LIVE !== "1",
|
||||
}, () => {
|
||||
let runCatalogAudit: typeof import("@/lib/services/catalog-audit").runCatalogAudit;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
||||
Reference in New Issue
Block a user