Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion actions/setup/js/apply_samples.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function initRepo(dir, defaultBranch) {
git(["commit", "-q", "-m", "seed"], dir);
}

describe.sequential("apply_samples.cjs", () => {
describe("apply_samples.cjs", () => {
let tempDir;
let configPath;
let outputsPath;
Expand Down
11 changes: 10 additions & 1 deletion actions/setup/js/mcp_cli_bridge.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,22 @@ describe("mcp_cli_bridge.cjs", () => {

it("fails fast when safeoutputs schema is empty", () => {
const originalPath = process.env.GH_AW_SAFE_OUTPUTS_TOOLS_PATH;
const originalRunnerTemp = process.env.RUNNER_TEMP;
const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "bridge-empty-safeoutputs-"));
delete process.env.GH_AW_SAFE_OUTPUTS_TOOLS_PATH;
process.env.RUNNER_TEMP = tempDir;
try {
expect(() => ensureSafeOutputsTools([], "safeoutputs", "/tmp/gh-aw/mcp-cli/tools/safeoutputs.json")).toThrow(/tool schema is empty/);
expect(() => ensureSafeOutputsTools([], "safeoutputs", path.join(tempDir, "safeoutputs.json"))).toThrow(/tool schema is empty/);
} finally {
if (originalPath !== undefined) {
process.env.GH_AW_SAFE_OUTPUTS_TOOLS_PATH = originalPath;
}
if (originalRunnerTemp === undefined) {
delete process.env.RUNNER_TEMP;
} else {
process.env.RUNNER_TEMP = originalRunnerTemp;
}
fs.rmSync(tempDir, { recursive: true, force: true });
}
});

Expand Down
Loading