(
root: string,
relativePath: string,
source = "export default function workflow() {}"
)
| 16 | import { resolveWorkflowScript } from "./workflowScriptResolver"; |
| 17 | |
| 18 | async function writeWorkflowFile( |
| 19 | root: string, |
| 20 | relativePath: string, |
| 21 | source = "export default function workflow() {}" |
| 22 | ) { |
| 23 | const target = path.join(root, relativePath); |
| 24 | await fs.mkdir(path.dirname(target), { recursive: true }); |
| 25 | await fs.writeFile(target, source, "utf-8"); |
| 26 | return target; |
| 27 | } |
| 28 | |
| 29 | describe("resolveWorkflowScript", () => { |
| 30 | test("resolves a trusted project skill workflow by explicit skill path", async () => { |
no test coverage detected