testing/app_server.ts view source
(options: BootstrapTestAccountOptions): Promise<{ account: { id: string; username: string; }; actor: { id: string; }; api_token: string; session_cookie: string; }> Bootstrap a test account with credentials.
Creates an account with actor, grants roles, creates an API token,
creates a session, and signs a session cookie. Shared by
create_test_app_server and TestApp.create_account.
options
returns
Promise<{ account: { id: string; username: string; }; actor: { id: string; }; api_token: string; session_cookie: string; }>