Compare commits

..

3 commits

Author SHA1 Message Date
Ochenstarik
14d200851b fix(e2e): fail when database setup runs no tests
Some checks failed
ci / verify (push) Has been cancelled
ci / format (push) Has been cancelled
ci / e2e (push) Has been cancelled
ci / windows (push) Has been cancelled
ci / docker-build (push) Has been cancelled
2026-09-30 21:15:33 +07:00
Ochenstarik
0910afd54d fix(migrations): preserve applied offline sync checksum
Some checks are pending
ci / verify (push) Waiting to run
ci / format (push) Waiting to run
ci / e2e (push) Waiting to run
ci / windows (push) Waiting to run
ci / docker-build (push) Blocked by required conditions
2026-09-30 21:10:43 +07:00
Ochenstarik
94f17c78cf Merge production readiness fixes
Some checks are pending
ci / e2e (push) Waiting to run
ci / windows (push) Waiting to run
ci / docker-build (push) Blocked by required conditions
ci / verify (push) Waiting to run
ci / format (push) Waiting to run
2026-09-30 21:05:46 +07:00
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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;