refactor: move snapshots into snapshots/ subdirectory

Reduces clutter when a skill has many test cases — all .json cases
are visible at top level, snapshots tucked away in one folder.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-03-28 12:52:20 +03:00
parent 0ddb675502
commit 9f6793abae
17 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -111,7 +111,7 @@ Exit code: 0 = все прошли, 1 = есть падения.
## Эталоны (snapshots)
Эталон — директория `<имя-кейса>.snapshot/` рядом с `.json` файлом кейса. Содержит ожидаемый выход навыка после нормализации.
Эталон — директория `snapshots/<имя-кейса>/` внутри папки навыка. Содержит ожидаемый выход навыка после нормализации.
### Создание / обновление эталонов
@@ -144,5 +144,6 @@ tests/skills/
<навык>/
_skill.json # конфиг навыка
<кейс>.json # тестовый случай
<кейс>.snapshot/ # эталон
snapshots/
<кейс>/ # эталон
```
+1 -1
View File
@@ -60,7 +60,7 @@ function discoverCases(filter) {
const casePath = join(skillPath, file);
const caseData = JSON.parse(readFileSync(casePath, 'utf8'));
const snapshotDir = join(skillPath, `${caseName}.snapshot`);
const snapshotDir = join(skillPath, 'snapshots', caseName);
results.push({
id: caseId,