Skip to content

mockActor

Jason Godesky edited this page Aug 15, 2026 · 1 revision

mockActor is a method designed to make it easy to create fake actors for testing.

Examples

import { beforeEach, afterEach, describe, expect, it, vi } from 'vitest'
import { mockActor } from '@revolutionarygamesco/common-foundryvtt/mocks'

const actor = mockActor({ name: 'John Doe', documentName: 'Actor', type: 'character' })

Clone this wiki locally