2026-02-15 16:43:33 +00:00
|
|
|
import { createEmptyPluginRegistry, type PluginRegistry } from "../../../plugins/registry.js";
|
2026-01-15 05:03:50 +00:00
|
|
|
|
2026-01-15 05:17:03 +00:00
|
|
|
export const createTestRegistry = (overrides: Partial<PluginRegistry> = {}): PluginRegistry => {
|
2026-02-15 16:43:33 +00:00
|
|
|
const merged = { ...createEmptyPluginRegistry(), ...overrides };
|
2026-01-15 05:03:50 +00:00
|
|
|
return {
|
|
|
|
|
...merged,
|
|
|
|
|
gatewayHandlers: merged.gatewayHandlers ?? {},
|
|
|
|
|
httpHandlers: merged.httpHandlers ?? [],
|
2026-01-25 07:22:36 -05:00
|
|
|
httpRoutes: merged.httpRoutes ?? [],
|
2026-01-15 05:03:50 +00:00
|
|
|
};
|
|
|
|
|
};
|