Skip to content

@vttforge/testing / index / MockModuleOptions

Type Alias: MockModuleOptions ​

MockModuleOptions = { active?: boolean; id: string; manifest?: string; socket?: boolean; title?: string; url?: string; version?: string; } | Record<string, unknown> & object

What a test says about a module it wants installed. Only id is required.

A type, not an interface, and the extra fields ride in a separate member of the intersection. An interface never satisfies an index signature, so a test that declared its fixtures with interface Handle { id: string; ... } could not pass them here, and the compiler's explanation reads like a puzzle.

MIT licensed.