docs: document script tests

This commit is contained in:
Peter Steinberger
2026-06-04 20:49:33 -04:00
parent dd2083c7ec
commit 58c663920d
248 changed files with 316 additions and 105 deletions

View File

@@ -1,3 +1,4 @@
// Arg Utils tests cover arg utils script behavior.
import { describe, expect, it } from "vitest";
import {
floatFlag,

View File

@@ -1,3 +1,4 @@
// Audit Seams tests cover audit seams script behavior.
import { describe, expect, it } from "vitest";
import {
HELP_TEXT,

View File

@@ -1,3 +1,4 @@
// Barnacle Auto Response tests cover barnacle auto response script behavior.
import { describe, expect, it } from "vitest";
import {
candidateLabels,

View File

@@ -1,3 +1,4 @@
// Bench Cli Startup tests cover bench cli startup script behavior.
import { describe, expect, it } from "vitest";
import { testing } from "../../scripts/bench-cli-startup.ts";

View File

@@ -1,3 +1,4 @@
// Gateway benchmark child test support simulates child process behavior for script tests.
import { EventEmitter } from "node:events";
import { expect, it, vi } from "vitest";

View File

@@ -1,3 +1,4 @@
// Bench Gateway Restart tests cover bench gateway restart script behavior.
import { spawnSync } from "node:child_process";
import fs from "node:fs";
import { createServer } from "node:http";

View File

@@ -1,3 +1,4 @@
// Bench Gateway Startup tests cover bench gateway startup script behavior.
import { spawnSync } from "node:child_process";
import fs from "node:fs";
import { createServer } from "node:http";

View File

@@ -1,3 +1,4 @@
// Bench Test Changed tests cover bench test changed script behavior.
import { spawnSync } from "node:child_process";
import { describe, expect, it } from "vitest";

View File

@@ -1,3 +1,4 @@
// Bounded Response tests cover bounded response script behavior.
import { describe, expect, it } from "vitest";
import { readBoundedResponseText as readBoundedResponseTextMjs } from "../../scripts/lib/bounded-response.mjs";
import { readBoundedResponseText as readBoundedResponseTextTs } from "../../scripts/lib/bounded-response.ts";

View File

@@ -1,3 +1,4 @@
// Build All tests cover build all script behavior.
import { spawnSync } from "node:child_process";
import fs from "node:fs";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Build And Run Mac tests cover build and run mac script behavior.
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";

View File

@@ -1,3 +1,4 @@
// Build Diffs Viewer Runtime tests cover build diffs viewer runtime script behavior.
import { describe, expect, it } from "vitest";
import { createPierreDiffsSideEffectImportPlugin } from "../../scripts/build-diffs-viewer-runtime.mjs";

View File

@@ -1,3 +1,4 @@
// Bundled Plugin Assets tests cover bundled plugin assets script behavior.
import fs from "node:fs";
import os from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Bundled Plugin Build Entries tests cover bundled plugin build entries script behavior.
import fs from "node:fs";
import path from "node:path";
import { describe, expect, it } from "vitest";

View File

@@ -1,3 +1,4 @@
// Bundled Plugin Install Uninstall Probe tests cover bundled plugin install uninstall probe script behavior.
import { spawn, spawnSync } from "node:child_process";
import fs from "node:fs";
import { createServer as createHttpServer, type Server as HttpServer } from "node:http";

View File

@@ -1,3 +1,4 @@
// Bundled Plugin Source Utils tests cover bundled plugin source utils script behavior.
import { describe, expect, it } from "vitest";
import { collectBundledPluginSources } from "../../scripts/lib/bundled-plugin-source-utils.mjs";
import { expectNoNodeFsScans } from "../../src/test-utils/fs-scan-assertions.js";

View File

@@ -1,3 +1,4 @@
// Changed Lanes tests cover changed lanes script behavior.
import { execFileSync, spawnSync } from "node:child_process";
import { existsSync, mkdirSync, unlinkSync, writeFileSync } from "node:fs";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Channel Contract Test Plan tests cover channel contract test plan script behavior.
import { describe, expect, it } from "vitest";
import { createChannelContractTestShards } from "../../scripts/lib/channel-contract-test-plan.mjs";
import { expectNoNodeFsScans } from "../../src/test-utils/fs-scan-assertions.js";

View File

@@ -1,3 +1,4 @@
// Channel Message Flows tests cover channel message flows script behavior.
import { describe, expect, it, vi } from "vitest";
import {
parseChannelMessageFlowArgs,

View File

@@ -1,3 +1,4 @@
// Check Changelog Attributions tests cover check changelog attributions script behavior.
import { execFileSync } from "node:child_process";
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Check Channel Agnostic Boundaries tests cover check channel agnostic boundaries script behavior.
import { describe, expect, it } from "vitest";
import {
findChannelAgnosticBoundaryViolations,

View File

@@ -1,3 +1,4 @@
// Check Cli Bootstrap Imports tests cover check cli bootstrap imports script behavior.
import { mkdtempSync, mkdirSync, rmSync, statSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import { dirname, join } from "node:path";

View File

@@ -1,3 +1,4 @@
// Check Cli Startup Memory tests cover check cli startup memory script behavior.
import { spawnSync } from "node:child_process";
import { readdirSync, mkdtempSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";

View File

@@ -1,3 +1,4 @@
// Check Composite Action Input Interpolation tests cover check composite action input interpolation script behavior.
import { spawnSync } from "node:child_process";
import fs from "node:fs";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Check Deadcode Unused Files tests cover check deadcode unused files script behavior.
import { EventEmitter } from "node:events";
import { mkdtempSync, rmSync, writeFileSync } from "node:fs";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Check Dependency Pins tests cover check dependency pins script behavior.
import { execFileSync } from "node:child_process";
import { mkdirSync, rmSync, writeFileSync } from "node:fs";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Check Deprecated Api Usage tests cover check deprecated api usage script behavior.
import { describe, expect, it } from "vitest";
import { buildDeprecatedPluginSdkModuleSpecifiers } from "../../scripts/lib/deprecated-plugin-sdk-usage.mjs";
import deprecatedPublicPluginSdkSubpaths from "../../scripts/lib/plugin-sdk-deprecated-public-subpaths.json" with { type: "json" };

View File

@@ -1,14 +1,16 @@
// Check Docs Mdx tests cover check docs mdx script behavior.
import { describe, expect, it } from "vitest";
import { parseArgs } from "../../scripts/check-docs-mdx.mjs";
describe("scripts/check-docs-mdx", () => {
it("parses roots and output options", () => {
expect(parseArgs(["docs", "README.md", "--json-out", "report.json", "--max-errors", "7"]))
.toEqual({
roots: ["docs", "README.md"],
jsonOut: "report.json",
maxErrors: 7,
});
expect(
parseArgs(["docs", "README.md", "--json-out", "report.json", "--max-errors", "7"]),
).toEqual({
roots: ["docs", "README.md"],
jsonOut: "report.json",
maxErrors: 7,
});
});
it("rejects malformed max error limits", () => {
@@ -18,8 +20,6 @@ describe("scripts/check-docs-mdx", () => {
expect(() => parseArgs(["--max-errors", "0"])).toThrow(
"--max-errors must be a positive integer",
);
expect(() => parseArgs(["--max-errors"])).toThrow(
"--max-errors must be a positive integer",
);
expect(() => parseArgs(["--max-errors"])).toThrow("--max-errors must be a positive integer");
});
});

View File

@@ -1,3 +1,4 @@
// Check Dynamic Import Warts tests cover check dynamic import warts script behavior.
import { describe, expect, it } from "vitest";
import { findDynamicImportAdvisories } from "../../scripts/check-dynamic-import-warts.mjs";

View File

@@ -1,3 +1,4 @@
// Check Extension Package Tsc Boundary tests cover check extension package tsc boundary script behavior.
import { EventEmitter } from "node:events";
import fs from "node:fs";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Check Extension Wildcard Reexports tests cover check extension wildcard reexports script behavior.
import { describe, expect, it } from "vitest";
import { findLocalWildcardReexports } from "../../scripts/check-extension-wildcard-reexports.mjs";

View File

@@ -1,3 +1,4 @@
// Check File Utils tests cover check file utils script behavior.
import fs from "node:fs";
import path from "node:path";
import { describe, expect, it } from "vitest";

View File

@@ -1,3 +1,4 @@
// Check Gateway Cpu Scenarios tests cover check gateway cpu scenarios script behavior.
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import path from "node:path";
import { afterEach, describe, expect, it } from "vitest";

View File

@@ -1,3 +1,4 @@
// Check Gateway Watch Regression tests cover check gateway watch regression script behavior.
import { EventEmitter } from "node:events";
import fs from "node:fs";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Check Memory Fd Repro tests cover check memory fd repro script behavior.
import { EventEmitter } from "node:events";
import fs from "node:fs";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Check No Conflict Markers tests cover check no conflict markers script behavior.
import { execFileSync } from "node:child_process";
import fs from "node:fs";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Check No Random Messaging Tmp tests cover check no random messaging tmp script behavior.
import { describe, expect, it } from "vitest";
import {
findMessagingTmpdirCallLines,

View File

@@ -1,3 +1,4 @@
// Check No Raw Window Open tests cover check no raw window open script behavior.
import { describe, expect, it } from "vitest";
import { findRawWindowOpenLines } from "../../scripts/check-no-raw-window-open.mjs";

View File

@@ -1,3 +1,4 @@
// Check Openclaw Package Tarball tests cover check openclaw package tarball script behavior.
import { spawnSync } from "node:child_process";
import {
chmodSync,

View File

@@ -1,3 +1,4 @@
// Check Opengrep Rule Metadata tests cover check opengrep rule metadata script behavior.
import { describe, expect, it } from "vitest";
import { validateRuleMetadata } from "../../security/opengrep/check-rule-metadata.mjs";

View File

@@ -1,3 +1,4 @@
// Check Package Patches tests cover check package patches script behavior.
import { execFileSync } from "node:child_process";
import { mkdirSync, rmSync, writeFileSync } from "node:fs";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Check Plugin Sdk Wildcard Reexports tests cover check plugin sdk wildcard reexports script behavior.
import { describe, expect, it } from "vitest";
import { findPluginSdkWildcardReexports } from "../../scripts/check-plugin-sdk-wildcard-reexports.mjs";

View File

@@ -1,3 +1,4 @@
// Check Runtime Sidecar Loaders tests cover check runtime sidecar loaders script behavior.
import { describe, expect, it } from "vitest";
import {
collectTsdownEntrySources,

View File

@@ -1,3 +1,4 @@
// Check Workflows tests cover check workflows script behavior.
import { spawnSync } from "node:child_process";
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Check tests cover check script behavior.
import { spawnSync } from "node:child_process";
import { describe, expect, it } from "vitest";
import { runCommand } from "../../scripts/check.mjs";

View File

@@ -1,3 +1,4 @@
// Ci Docker Pull Retry tests cover ci docker pull retry script behavior.
import { execFileSync, spawnSync } from "node:child_process";
import { chmodSync, existsSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
@@ -128,7 +129,9 @@ describe("scripts/ci-docker-pull-retry.sh", () => {
const result = runPullHelper(binDir);
expect(result.status).toBe(127);
expect(result.stderr).toContain("timeout command not found; cannot bound Docker pull after 42s");
expect(result.stderr).toContain(
"timeout command not found; cannot bound Docker pull after 42s",
);
expect(existsSync(dockerArgsPath)).toBe(false);
});
@@ -162,6 +165,8 @@ describe("scripts/ci-docker-pull-retry.sh", () => {
expect(result.status).toBe(42);
expect(result.stderr).toContain("Docker pull failed or timed out after 42s: status=42");
expect(execFileSync("wc", ["-l", dockerArgsPath], { encoding: "utf8" }).trim()).toMatch(/^2\b/u);
expect(execFileSync("wc", ["-l", dockerArgsPath], { encoding: "utf8" }).trim()).toMatch(
/^2\b/u,
);
});
});

View File

@@ -1,3 +1,4 @@
// Ci Node Test Plan tests cover ci node test plan script behavior.
import { existsSync, readdirSync } from "node:fs";
import { join, relative, resolve } from "node:path";
import fg from "fast-glob";

View File

@@ -1,3 +1,4 @@
// Ci Run Timings tests cover ci run timings script behavior.
import { describe, expect, it } from "vitest";
import {
collectRunJobsFromPages,

View File

@@ -1,3 +1,4 @@
// Ci Workflow Guards tests cover ci workflow guards script behavior.
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
import { parse } from "yaml";

View File

@@ -1,3 +1,4 @@
// Claude Auth Status tests cover claude auth status script behavior.
import { spawnSync } from "node:child_process";
import { chmodSync, mkdirSync, writeFileSync } from "node:fs";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Clawdock Helpers tests cover clawdock helpers script behavior.
import { execFile } from "node:child_process";
import { mkdtemp, mkdir, readFile, rm, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";

View File

@@ -1,3 +1,4 @@
// Cli Startup Bench Spawner tests cover cli startup bench spawner script behavior.
import { execFileSync, spawnSync } from "node:child_process";
import fs from "node:fs";
import os from "node:os";
@@ -172,10 +173,7 @@ describe("CLI startup benchmark script spawners", () => {
exitBudgetMs: 1,
},
};
fs.writeFileSync(
baselinePath,
JSON.stringify({ primary: { cases: [slowResponseCase] } }),
);
fs.writeFileSync(baselinePath, JSON.stringify({ primary: { cases: [slowResponseCase] } }));
fs.writeFileSync(reportPath, JSON.stringify({ primary: { cases: [slowResponseCase] } }));
const responseBudgetResult = spawnSync(
process.execPath,

View File

@@ -1,3 +1,4 @@
// Close Duplicate Prs After Merge tests cover close duplicate prs after merge script behavior.
import { describe, expect, it } from "vitest";
import {
applyClosePlan,

View File

@@ -1,3 +1,4 @@
// Codesign Mac App tests cover codesign mac app script behavior.
import { spawnSync } from "node:child_process";
import {
chmodSync,

View File

@@ -1,3 +1,4 @@
// Codex App Server Protocol Source tests cover codex app server protocol source script behavior.
import fs from "node:fs";
import path from "node:path";
import { afterEach, describe, expect, it } from "vitest";
@@ -75,9 +76,9 @@ describe("codex app-server protocol source resolver", () => {
});
it("checks an explicit Cargo target dir override", () => {
expect(resolveCodexProtocolCargoTargetDir("/codex", { CARGO_TARGET_DIR: "/cache/target" })).toBe(
path.resolve("/cache/target"),
);
expect(
resolveCodexProtocolCargoTargetDir("/codex", { CARGO_TARGET_DIR: "/cache/target" }),
).toBe(path.resolve("/cache/target"));
});
it("resolves relative Cargo target dir overrides from the Codex checkout", () => {

View File

@@ -1,3 +1,4 @@
// Codex Media Path Client tests cover codex media path client script behavior.
import { type ChildProcessWithoutNullStreams, spawn, spawnSync } from "node:child_process";
import { appendFileSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";

View File

@@ -1,3 +1,4 @@
// Committer tests cover committer script behavior.
import { execFileSync } from "node:child_process";
import { cpSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";

View File

@@ -1,3 +1,4 @@
// Config Reload Log Scanner tests cover config reload log scanner script behavior.
import { appendFileSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Control Ui I18N tests cover control ui i18n script behavior.
import { mkdtempSync, readFileSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Crabbox Wrapper tests cover crabbox wrapper script behavior.
import { spawnSync } from "node:child_process";
import {
chmodSync,

View File

@@ -1,3 +1,4 @@
// Create Dmg tests cover create dmg script behavior.
import { spawnSync } from "node:child_process";
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
@@ -74,10 +75,7 @@ describe("create-dmg plist validation", () => {
it.runIf(process.platform === "darwin")(
"fails before hdiutil when required plist keys are missing",
() => {
const app = makeApp([
"<key>CFBundleName</key>",
"<string>OpenClaw</string>",
]);
const app = makeApp(["<key>CFBundleName</key>", "<string>OpenClaw</string>"]);
const result = runScript([app, path.join(path.dirname(app), "out.dmg")]);
expect(result.status).toBe(1);

View File

@@ -1,3 +1,4 @@
// Cron Mcp Cleanup Docker Client tests cover cron mcp cleanup docker client script behavior.
import fs from "node:fs";
import os from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Dependency Changes Report tests cover dependency changes report script behavior.
import { describe, expect, it } from "vitest";
import {
createDependencyChangesReport,

View File

@@ -1,3 +1,4 @@
// Dependency Guard Script tests cover dependency guard script script behavior.
import { afterEach, describe, expect, it, vi } from "vitest";
import {
GITHUB_ERROR_BODY_MAX_BYTES,

View File

@@ -1,3 +1,4 @@
// Dependency Guard Workflow tests cover dependency guard workflow script behavior.
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
import { parse } from "yaml";

View File

@@ -1,3 +1,4 @@
// Dependency Ownership Surface Report tests cover dependency ownership surface report script behavior.
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Dependency Vulnerability Gate tests cover dependency vulnerability gate script behavior.
import { mkdtemp, rm, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Dev Tooling Safety tests cover dev tooling safety script behavior.
import { EventEmitter } from "node:events";
import fs from "node:fs/promises";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// Docker All Scheduler tests cover docker all scheduler script behavior.
import { spawnSync } from "node:child_process";
import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";

View File

@@ -1,3 +1,4 @@
// Docker Build Helper tests cover docker build helper script behavior.
import { execFileSync, spawn } from "node:child_process";
import {
chmodSync,
@@ -111,9 +112,7 @@ function shellQuote(value: string): string {
function runCleanupDefaultPlatform(env: Record<string, string>, hostArch: string): string {
const script = readFileSync(CLEANUP_DOCKER_SMOKE_PATH, "utf8");
const match = script.match(
/(resolve_default_cleanup_platform\(\) \{[\s\S]*?\n\})\n\nPLATFORM=/u,
);
const match = script.match(/(resolve_default_cleanup_platform\(\) \{[\s\S]*?\n\})\n\nPLATFORM=/u);
if (!match) {
throw new Error("resolve_default_cleanup_platform was not found");
}
@@ -2055,9 +2054,9 @@ output="$(run_logged_print_heartbeat plugins-run 08 bash -c 'printf "captured co
expect(wrapper).toContain("OPENCLAW_PROFILE_FILE");
expect(wrapper).toContain("OPENCLAW_TESTBOX_PROFILE_FILE");
expect(wrapper).toContain("read_profile_env_value");
expect(wrapper).toContain("source \"$PROFILE_FILE\"");
expect(wrapper).toContain('source "$PROFILE_FILE"');
expect(wrapper).not.toContain("set -a");
expect(wrapper).toContain("export \"$key\"");
expect(wrapper).toContain('export "$key"');
expect(wrapper).toContain("Profile file: $PROFILE_STATUS");
expect(runner).toContain("OPENCLAW_INSTALL_E2E_OPENAI_MODEL");
expect(runner).toContain("OPENCLAW_INSTALL_E2E_OPENAI_PROVIDER_TIMEOUT_SECONDS");

View File

@@ -1,3 +1,4 @@
// Docker E2E Helper Cli tests cover docker e2e helper cli script behavior.
import { spawnSync } from "node:child_process";
import { describe, expect, it } from "vitest";

View File

@@ -1,3 +1,4 @@
// Docker E2E Observability tests cover docker e2e observability script behavior.
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";

View File

@@ -1,3 +1,4 @@
// Docker E2E Plan tests cover docker e2e plan script behavior.
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
import {

View File

@@ -1,3 +1,4 @@
// Docker Stats Resource Ceiling tests cover docker stats resource ceiling script behavior.
import { spawnSync } from "node:child_process";
import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";

View File

@@ -1,3 +1,4 @@
// E2E Agent Turn Output tests cover e2e agent turn output script behavior.
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";

View File

@@ -1,3 +1,4 @@
// E2E Helper Env Limits tests cover e2e helper env limits script behavior.
import { spawn, spawnSync } from "node:child_process";
import fs from "node:fs";
import { createServer, type Server } from "node:http";

View File

@@ -1,3 +1,4 @@
// E2E Mock Config Limits tests cover e2e mock config limits script behavior.
import { type ChildProcess, spawn, spawnSync } from "node:child_process";
import { once } from "node:events";
import { mkdtemp, rm } from "node:fs/promises";

View File

@@ -1,3 +1,4 @@
// E2E Run With Pty tests cover e2e run with pty script behavior.
import { spawn } from "node:child_process";
import { mkdtemp, readFile, rm } from "node:fs/promises";
import os from "node:os";

View File

@@ -1,3 +1,4 @@
// E2E Shell Tempfiles tests cover e2e shell tempfiles script behavior.
import { spawnSync } from "node:child_process";
import { mkdir, mkdtemp, readdir, readFile, rm, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
@@ -162,9 +163,9 @@ exit 42
expect(result.status, `${result.stdout}\n${result.stderr}`).toBe(42);
const scratchEntries = await readdir(scratchRoot);
expect(scratchEntries.filter((entry) => entry.startsWith("openclaw-skill-install-home."))).toEqual(
[],
);
expect(
scratchEntries.filter((entry) => entry.startsWith("openclaw-skill-install-home.")),
).toEqual([]);
} finally {
await rm(tempRoot, { force: true, recursive: true });
}

View File

@@ -1,3 +1,4 @@
// E2E Temp State Dir tests cover e2e temp state dir script behavior.
import { spawn } from "node:child_process";
import {
chmodSync,

View File

@@ -1,3 +1,4 @@
// E2E Websocket Open tests cover e2e websocket open script behavior.
import { EventEmitter } from "node:events";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { waitForWebSocketOpen } from "../../scripts/e2e/lib/websocket-open.mjs";

View File

@@ -1,3 +1,4 @@
// Embedded Run Abort Leak tests cover embedded run abort leak script behavior.
import { spawnSync } from "node:child_process";
import { mkdtempSync, readdirSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";

View File

@@ -1,3 +1,4 @@
// Ensure Cli Startup Build tests cover ensure cli startup build script behavior.
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Ensure Extension Memory Build tests cover ensure extension memory build script behavior.
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Ensure Playwright Chromium tests cover ensure playwright chromium script behavior.
import { describe, expect, it, vi } from "vitest";
import {
ensurePlaywrightChromium,
@@ -274,12 +275,7 @@ describe("ensurePlaywrightChromium", () => {
platform: "win32",
}),
).toEqual({
args: [
"/d",
"/s",
"/c",
"pnpm.cmd --dir ui exec playwright install chromium",
],
args: ["/d", "/s", "/c", "pnpm.cmd --dir ui exec playwright install chromium"],
command: "C:\\Windows\\System32\\cmd.exe",
shell: false,
windowsVerbatimArguments: true,
@@ -295,12 +291,7 @@ describe("ensurePlaywrightChromium", () => {
withDeps: true,
}),
).toEqual({
args: [
"/d",
"/s",
"/c",
"pnpm.cmd --dir ui exec playwright install --with-deps chromium",
],
args: ["/d", "/s", "/c", "pnpm.cmd --dir ui exec playwright install --with-deps chromium"],
command: "C:\\Windows\\System32\\cmd.exe",
shell: false,
windowsVerbatimArguments: true,

View File

@@ -1,3 +1,4 @@
// Extension Source Classifier tests cover extension source classifier script behavior.
import { describe, expect, it } from "vitest";
import { classifyBundledExtensionSourcePath } from "../../scripts/lib/extension-source-classifier.mjs";

View File

@@ -1,3 +1,4 @@
// Firecrawl Compare tests cover firecrawl compare script behavior.
import { describe, expect, it } from "vitest";
import { testing as firecrawlCompareTesting } from "../../scripts/firecrawl-compare.ts";

View File

@@ -1,3 +1,4 @@
// Fixture Config tests cover fixture config script behavior.
import { spawnSync } from "node:child_process";
import { mkdtempSync, readFileSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";

View File

@@ -1,3 +1,4 @@
// Format Generated Module tests cover format generated module script behavior.
import path from "node:path";
import { describe, expect, it } from "vitest";
import { resolveGeneratedModuleFormatter } from "../../scripts/lib/format-generated-module.mjs";

View File

@@ -1,3 +1,4 @@
// Gateway Frame Payload tests cover gateway frame payload script behavior.
import { describe, expect, it } from "vitest";
import { resolveGatewaySuccessPayload } from "../../scripts/e2e/lib/gateway-frame-payload.mjs";

View File

@@ -1,3 +1,4 @@
// Gateway Network Client tests cover gateway network client script behavior.
import { EventEmitter } from "node:events";
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";

View File

@@ -1,3 +1,4 @@
// Gateway Smoke tests cover gateway smoke script behavior.
import { describe, expect, it } from "vitest";
import { runGatewaySmoke } from "../../scripts/dev/gateway-smoke.js";

View File

@@ -1,3 +1,4 @@
// Gateway Ws Client tests cover gateway ws client script behavior.
import { createServer, type Server } from "node:http";
import { afterEach, describe, expect, it } from "vitest";
import { WebSocket, WebSocketServer } from "ws";

View File

@@ -1,3 +1,4 @@
// Generate Dependency Release Evidence tests cover generate dependency release evidence script behavior.
import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Generate Npm Shrinkwrap tests cover generate npm shrinkwrap script behavior.
import path from "node:path";
import { describe, expect, it } from "vitest";
import {

View File

@@ -1,3 +1,4 @@
// Gh Read tests cover gh read script behavior.
import { afterEach, describe, expect, it, vi } from "vitest";
import {
buildReadPermissions,

View File

@@ -1,3 +1,4 @@
// Github Activity Helper tests cover github activity helper script behavior.
import { spawnSync } from "node:child_process";
import { chmodSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";

View File

@@ -1,3 +1,4 @@
// Install Cli tests cover install cli script behavior.
import { spawnSync } from "node:child_process";
import {
chmodSync,

View File

@@ -1,3 +1,4 @@
// Install Ps1 tests cover install ps1 script behavior.
import { spawnSync } from "node:child_process";
import { chmodSync, readFileSync, writeFileSync } from "node:fs";
import { join } from "node:path";

View File

@@ -1,3 +1,4 @@
// Install Sh tests cover install sh script behavior.
import { spawnSync } from "node:child_process";
import { chmodSync, mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";

Some files were not shown because too many files have changed in this diff Show More