Showing the changes to apps/host-selfhost/src/testing (1 of 19 files). Show all
Unified · Split
| @@ -30,6 +30,8 @@ import { · 29 unmodified lines | |||
| 30 | } from "../mcp/session-store"; | 30 | } from "../mcp/session-store"; |
| 31 | import { selfHostPlugins } from "../plugins"; | 31 | import { selfHostPlugins } from "../plugins"; |
| 32 | import { ErrorCaptureLive } from "../observability"; | 32 | import { ErrorCaptureLive } from "../observability"; |
| 33 | import { closeSelfHostAppsSubsystem } from "../apps"; | ||
| 34 | import { makeSelfHostAppsSyncRoute } from "../apps-route"; | ||
| 33 | 35 | ||
| 34 | // =========================================================================== | 36 | // =========================================================================== |
| 35 | // Self-host TEST harness — the throwaway composition tests use to exercise the | 37 | // Self-host TEST harness — the throwaway composition tests use to exercise the |
| @@ -202,6 +204,7 @@ export const makeSelfHostTestApp = async ( · 166 unmodified lines | |||
| 202 | }, | 204 | }, |
| 203 | extensions: { | 205 | extensions: { |
| 204 | routes: [ | 206 | routes: [ |
| 207 | makeSelfHostAppsSyncRoute({ identity: options.identity, db: dbHandle }), | ||
| 205 | HttpApiSwagger.layer(composePluginApi(selfHostPlugins).prefix("/api"), { path: "/docs" }), | 208 | HttpApiSwagger.layer(composePluginApi(selfHostPlugins).prefix("/api"), { path: "/docs" }), |
| 206 | ], | 209 | ], |
| 207 | }, | 210 | }, |
| @@ -217,6 +220,7 @@ export const makeSelfHostTestApp = async ( · 9 unmodified lines | |||
| 217 | handler: web.handler, | 220 | handler: web.handler, |
| 218 | dispose: async () => { | 221 | dispose: async () => { |
| 219 | await web.dispose(); | 222 | await web.dispose(); |
| 223 | await closeSelfHostAppsSubsystem(); | ||
| 220 | await sessionStore.close(); | 224 | await sessionStore.close(); |
| 221 | await dbHandle.close(); | 225 | await dbHandle.close(); |
| 222 | }, | 226 | }, |