Skip to content

mockItem

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

mockItem is a method designed to make it easy to create fake items for testing.

Examples

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

const item = mockItem({ name: 'Test', documentName: 'Item' })

Clone this wiki locally