test(gateway): follow worker service construction boundary

This commit is contained in:
Peter Steinberger
2026-08-12 20:19:12 -07:00
parent 51f9efbac2
commit ce356d3963
+4 -1
View File
@@ -214,7 +214,10 @@ describe("gateway startup import boundaries", () => {
const workerStartup = readSource("src/gateway/server-worker-environment-startup.ts");
const runtimeLoad = "loadWorkerEnvironmentRuntimeModule()";
const prepareStart = workerStartup.indexOf("const prepareInstallation = async");
const serviceStart = workerStartup.indexOf("const workerEnvironmentService =", prepareStart);
const serviceStart = workerStartup.indexOf(
"const workerEnvironmentServiceBase =",
prepareStart,
);
const identityStart = workerStartup.indexOf("resolveSshIdentity: async", serviceStart);
const bootstrapStart = workerStartup.indexOf("bootstrapWorker: async", serviceStart);
const loggerStart = workerStartup.indexOf("logger: params.log.child", bootstrapStart);