import {expectTypeOf, test} from 'vitest'; import type { ReplicationStatusEvent, StatusEvent, ViewSyncerStatusEvent, } from './status.ts'; test('type name prefix required by StatusEvent', () => { expectTypeOf< StatusEvent & {type: 'zero/events/status/foo/bar'} >().toExtend(); expectTypeOf< StatusEvent & {type: 'not/a/proper/subtype'} >().not.toExtend(); }); test('replication status event', () => { expectTypeOf().toExtend(); }); test('view-syncer status event', () => { expectTypeOf().toExtend(); });