UNPKG

@rayners/foundry-test-utils

Version:

Shared testing utilities and mocks for FoundryVTT modules

27 lines (26 loc) 759 B
/** * PF2e-specific test environment setup * * Provides utilities for setting up PF2e game system environment in tests */ export interface PF2eEnvironmentOptions { worldCreationTimestamp?: number; currentWorldTime?: number; expectedWorldCreationYear?: number; } /** * Set up a test environment simulating PF2e system */ export declare function setupPF2eEnvironment(options?: PF2eEnvironmentOptions): { worldCreationTimestamp: number; currentWorldTime: number; expectedWorldCreationYear: number; verifyPF2eYear: (actualYear: number) => boolean; }; /** * Create PF2e world creation timestamp hook data structure */ export declare function createPF2eTimestampHookData(): { timestamp: number | null; found: boolean; };