test fixes

This commit is contained in:
Dax Raad
2026-05-14 22:31:28 -04:00
parent 10c8493940
commit 16639eee76
3 changed files with 203 additions and 203 deletions

View File

@@ -227,6 +227,16 @@ export function reset() {
export function init(input: { projectors: Array<[Definition, ProjectorFunc]>; convertEvent?: ConvertEvent }) {
projectors = new Map(input.projectors)
for (let entry of EventV2.registry.values()) {
if (!entry.version || !entry.aggregate) continue
register({
type: entry.type,
version: entry.version,
aggregate: entry.aggregate,
properties: entry.data,
schema: entry.data,
})
}
// Install all the latest event defs to the bus. We only ever emit
// latest versions from code, and keep around old versions for