fix(web-test): discoverTests для одиночного файла + первый smoke-тест

- Fix: discoverTests падал с ENOTDIR при передаче .test.mjs файла
- Добавлен 01-navigation.test.mjs — навигация по разделам, открытие
  списков через navigateLink, переключение между подсистемами

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-04-05 15:22:40 +03:00
parent 61ef7ac891
commit b322c02fdb
2 changed files with 44 additions and 2 deletions
+2 -2
View File
@@ -361,8 +361,8 @@ async function cmdTest(rawArgs) {
}
// Load config if exists
const testDir = existsSync(testPath) && readdirSync(testPath, { withFileTypes: true }).length >= 0
? testPath : dirname(testPath);
const isFile = testPath.endsWith('.test.mjs');
const testDir = isFile ? dirname(testPath) : testPath;
const configPath = resolve(testDir, 'webtest.config.mjs');
let config = {};
if (existsSync(configPath)) {