@rayners/foundry-test-utils
Version:
Shared testing utilities and mocks for FoundryVTT modules
11 lines (10 loc) • 480 B
TypeScript
/**
* Common test setup for FoundryVTT modules
*
* This file sets up the basic environment needed for testing Foundry modules.
* Import this in your vitest.config.js setupFiles array.
*/
import '../mocks/foundry-mocks.js';
export declare const createMockElement: (tagName?: string, attributes?: Record<string, string>) => HTMLElement;
export declare const createMockEvent: (type: string, options?: any) => Event;
export declare const waitForNextTick: () => Promise<unknown>;