testing/entities.ts view source
(overrides?: Partial<Account> | undefined): Account Create a test Account with sensible defaults.
overrides?
type
Partial<Account> | undefinedoptional
returns
Account Shared test entity factories for Account, Actor, Permit, and RequestContext.
Accepts Partial<T> overrides — callers set only what matters to their test.
Uses create_test_* names to avoid collisions with real create_account_with_actor
from account_queries.ts.
4 declarations
testing/entities.ts view source
(overrides?: Partial<Account> | undefined): Account Create a test Account with sensible defaults.
overrides?Partial<Account> | undefinedAccount testing/entities.ts view source
(overrides?: Partial<Actor> | undefined): Actor Create a test Actor with sensible defaults.
overrides?Partial<Actor> | undefinedActor testing/entities.ts view source
(permits?: Partial<Permit>[]): RequestContext Create a test RequestContext with permits from partial overrides.
permitsPartial<Permit>[][{}]RequestContext testing/entities.ts view source
(overrides?: Partial<Permit> | undefined): Permit Create a test Permit with sensible defaults.
overrides?Partial<Permit> | undefinedPermit