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
6 changes: 3 additions & 3 deletions .github/scripts/__tests__/create-agent-spec.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import fs from "fs";
import path from "path";
import url from "url";
import { execSync } from "child_process";
import { execFileSync } from "child_process";

const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
const PROJECT_ROOT = path.join(__dirname, "../../../");
Expand Down Expand Up @@ -287,10 +287,10 @@ test("npm script is registered", () => {
*/
test("CLI --help displays usage information", () => {
try {
const output = execSync(`node ${CREATE_AGENT_SCRIPT} --help`, {
const output = execFileSync("node", [CREATE_AGENT_SCRIPT, "--help"], {
cwd: PROJECT_ROOT,
encoding: "utf-8",
}).toString();
});
assert(
output.includes("Agent Specification Generator"),
"Help text missing title",
Expand Down
53 changes: 27 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading