Classes

@system-inc/base-foundation · 515c140 · 2 symbols

Integration test client for interacting with the server under test.

Generic transport plumbing only — cookies, GraphQL/RPC/WebSocket client construction, and a bare data source factory. Module-specific helpers (e.g. account setup, device cookie management) live with the modules that own them and wrap an instance of this class.

Members

  • runtime: IntegrationTestEnvironment

  • clearAllCookies(): void

  • getCookies(): Record<string, string>

  • getCookieString(): string

  • getGqlClient(): GraphQLClient

  • getOrmDatabase(entities: OrmEntityClass[], name: string): OrmDatabase

    Creates an OrmDatabase against the configured test database for direct DB assertions on Orm entities.

  • getRemoteProcedureClient(): RpcClient<RpcInterface>

  • getServerBaseUrl(): string

  • getWebSocket(): WebSocket

  • removeCookie(name: string): void

  • sendRequest(url: string, requestInit?: RequestInit): Promise<Response>

  • setCookie(name: string, value: string): void

  • setCookies(cookies: Record<string, string>): void

  • testGqlUrl(): string

  • testRpcUrl(): string

View source ↗

Environment to facilitate integration testing.

Members

View source ↗