diff --git a/tests/skills/verify-snapshots.mjs b/tests/skills/verify-snapshots.mjs index 262963b6..5639d743 100644 --- a/tests/skills/verify-snapshots.mjs +++ b/tests/skills/verify-snapshots.mjs @@ -606,6 +606,7 @@ function runPreSteps(preRun, workDir, runtime, log) { const wfContent = typeof step.writeFile.content === 'string' ? step.writeFile.content : JSON.stringify(step.writeFile.content, null, 2); + mkdirSync(dirname(wfPath), { recursive: true }); writeFileSync(wfPath, wfContent, 'utf8'); log(`preRun: writeFile ${step.writeFile.path}`, true); continue;