Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+3
-1
@@ -1,10 +1,12 @@
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { spawnSync } from "node:child_process";
|
||||
import { createRequire } from "node:module";
|
||||
import { dirname, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const here = dirname(fileURLToPath(import.meta.url));
|
||||
const scriptPath = resolve(here, "generate-spec.ts");
|
||||
const tsxCli = createRequire(import.meta.url).resolve("tsx/cli");
|
||||
|
||||
/**
|
||||
* Smoke test: the script exits 0 in write mode, then `--check` mode confirms
|
||||
@@ -22,7 +24,7 @@ describe("generate-spec script", () => {
|
||||
// Just verify the script is importable / syntactically valid by running --help-equivalent.
|
||||
// We invoke the file with --check, which only succeeds when openapi.json already exists;
|
||||
// when it doesn't, the script exits with code 1 (missing) or 2 (drift). Either is a "ran" signal.
|
||||
const result = spawnSync("pnpm", ["exec", "tsx", scriptPath, "--check"], {
|
||||
const result = spawnSync(process.execPath, [tsxCli, scriptPath, "--check"], {
|
||||
cwd: resolve(here, ".."),
|
||||
encoding: "utf8",
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user