Files
2026-10-12 23:40:08 -04:00

11 lines
492 B
TypeScript

// Every engine view: the source of the SDK's views.json and the SDK's test runtime.
import { getViewDefinitions, loadViewImplementation, type ViewDefinition } from './registry';
import './definitions';
/** Loads every area's module, so each view comes with its hook and fixtures. */
export async function loadViewCatalog(): Promise<readonly ViewDefinition[]> {
await Promise.all(getViewDefinitions().map(({ name }) => loadViewImplementation(name)));
return getViewDefinitions();
}