Skip to content

@vttforge/testing / index / MockWorldDocument

Type Alias: MockWorldDocument ​

MockWorldDocument = MockDocument | { id?: string; name?: string; } | Record<string, unknown>

A document a test puts in the world.

createMockActor and createMockItem build one with flags and update already on it. A plain object works too, which is why this is a union: a MockDocument is an interface and does not satisfy an index signature.

MIT licensed.