Phase8
Some checks failed
CI / Node — lint, typecheck, test, build (push) Failing after 9s
CI / Go — node-agent tests (push) Failing after 9s
CI / Go — edge-gateway build (push) Successful in 17s

This commit is contained in:
smueller
2026-06-26 13:33:03 +02:00
parent ab21f53cdd
commit b335f6a497
39 changed files with 1477 additions and 20 deletions

View File

@@ -0,0 +1,30 @@
import { describe, it } from 'node:test';
import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
describe('phase 8 api contract', () => {
it('documents internal edge routes and join fields', () => {
const edgeSource = readFileSync(
join(process.cwd(), 'src', 'edge/edge.controller.ts'),
'utf8',
);
assert.ok(edgeSource.includes("'resolve/:slug'"));
assert.ok(edgeSource.includes("'start/:slug'"));
assert.ok(edgeSource.includes('EdgeInternalGuard'));
const edgeServiceSource = readFileSync(
join(process.cwd(), 'src', 'edge/edge.service.ts'),
'utf8',
);
assert.ok(edgeServiceSource.includes('requestJoinStart'));
assert.ok(edgeServiceSource.includes('checkStartRateLimit'));
const serversSource = readFileSync(
join(process.cwd(), 'src', 'servers/servers.service.ts'),
'utf8',
);
assert.ok(serversSource.includes('startServerInternal'));
assert.ok(serversSource.includes('joinHostname'));
});
});