Compare commits
3 commits
kagent/tas
...
codex/boot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14d200851b | ||
|
|
0910afd54d | ||
|
|
94f17c78cf |
2 changed files with 11 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ CREATE TABLE staff_sync_devices (
|
|||
UNIQUE (tenant_id, id),
|
||||
UNIQUE (tenant_id, device_code),
|
||||
UNIQUE (tenant_id, token_hash),
|
||||
FOREIGN KEY (tenant_id, org_unit_id) REFERENCES staff_org_units (tenant_id, id) ON DELETE SET NULL (org_unit_id)
|
||||
FOREIGN KEY (tenant_id, org_unit_id) REFERENCES staff_org_units (tenant_id, id) ON DELETE SET NULL
|
||||
);
|
||||
|
||||
CREATE INDEX staff_sync_devices_token_hash_idx
|
||||
|
|
|
|||
|
|
@ -52,6 +52,16 @@ try {
|
|||
console.error('[run-e2e] нет JSON-результатов: стенд не поднялся (см. e2e-run.txt)');
|
||||
process.exit(1);
|
||||
}
|
||||
const assertionCount = results.testResults?.reduce(
|
||||
(total, file) => total + (file.assertionResults?.length ?? 0),
|
||||
0,
|
||||
);
|
||||
if (!assertionCount) {
|
||||
console.error(
|
||||
`[run-e2e] тесты не выполнены (vitest exit=${exitCode}): стенд не поднялся или global setup завершился ошибкой`,
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
const known = strict
|
||||
? {}
|
||||
: JSON.parse(readFileSync(path.join(repoRoot, 'tests/e2e/known-defects.json'), 'utf8')).defects;
|
||||
|
|
|
|||
Loading…
Reference in a new issue