11 lines
386 B
TypeScript
11 lines
386 B
TypeScript
import { createEmptyPluginRegistry, type PluginRegistry } from "../../../plugins/registry.js";
|
|
|
|
export const createTestRegistry = (overrides: Partial<PluginRegistry> = {}): PluginRegistry => {
|
|
const merged = { ...createEmptyPluginRegistry(), ...overrides };
|
|
return {
|
|
...merged,
|
|
gatewayHandlers: merged.gatewayHandlers ?? {},
|
|
httpRoutes: merged.httpRoutes ?? [],
|
|
};
|
|
};
|