From 8399f13e5a129e7a88fa56937551eb94ca398a8c Mon Sep 17 00:00:00 2001 From: Nick Shirokov Date: Sat, 18 Jul 2026 17:57:35 +0300 Subject: [PATCH] =?UTF-8?q?fix(tests):=20verify-snapshots=20preRun=20write?= =?UTF-8?q?File=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D1=91=D1=82=20=D1=80?= =?UTF-8?q?=D0=BE=D0=B4=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D1=81=D0=BA=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B0=D0=BF=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Реплей preRun-шага writeFile в verify-snapshots.mjs писал файл без mkdir -p (в runner.mjs фикс уже был). Кейсы, пишущие в ext/ (cfe-borrow общего модуля не создаёт ext/.../Ext/), падали с ENOENT. Зеркалит фикс из runner.mjs. Co-Authored-By: Claude Opus 4.8 --- tests/skills/verify-snapshots.mjs | 1 + 1 file changed, 1 insertion(+) 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;