UNPKG

genaiscript

Version:

A CLI for GenAIScript, a generative AI scripting framework.

23 lines (20 loc) 551 B
system({ title: "Tools to run node.js test script", }) export default function (ctx: ChatGenerationContext) { const { defTool } = ctx defTool( "node_test", "build and test current project using `npm test`", { path: { type: "string", description: "Path to the package folder relative to the workspace root", }, }, async (args) => { return await host.exec("npm", ["test"], { cwd: args.path }) } ) }