mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-16 07:45:17 +03:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user