mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-20 09:30:59 +03:00
fix(tests): verify-snapshots preRun writeFile создаёт родительские папки
Реплей preRun-шага writeFile в verify-snapshots.mjs писал файл без mkdir -p (в runner.mjs фикс уже был). Кейсы, пишущие в ext/ (cfe-borrow общего модуля не создаёт ext/.../Ext/), падали с ENOENT. Зеркалит фикс из runner.mjs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
39fc1b977d
commit
8399f13e5a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user