2026-10-12 17:58:43 -04:00
|
|
|
// Every engine view: the source of the SDK's views.json and the SDK's test runtime.
|
2026-10-12 16:21:19 -04:00
|
|
|
import { getViewDefinitions, loadViewImplementation, type ViewDefinition } from './registry';
|
|
|
|
|
import './definitions';
|
2026-10-12 07:54:37 -04:00
|
|
|
|
2026-10-12 16:21:19 -04:00
|
|
|
/** 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();
|
|
|
|
|
}
|