There was an error while loading. Please reload this page.
mockActors is a mock for a Collection of actors (like game.actors). The mock is rather bare, really only covering get.
game.actors
get
import { beforeEach, afterEach, describe, expect, it, vi } from 'vitest' import { getID } from '@revolutionarygamesco/common-foundryvtt' import { mockActors, mockActor } from '@revolutionarygamesco/common-foundryvtt/mocks' const actor = mockActor({ name: 'John Doe' }) const dict: Record<string, foundry.documents.Actor> = {} dict[getID(actor.uuid)] = actor mockActors(dict)