testing/db_entities.ts view source
(db: Db, options: { username: string; password_hash?: string | undefined; }): Promise<TestAccountWithActor> Create an account + actor row pair in the database for tests.
Wraps query_create_account_with_actor with a default password_hash
so suites that don't exercise password verification can stay terse.
Replaces the per-file create_user / create_test_actor /
create_test_account helpers that had accumulated across the auth
test suite.
db
options
{ username: string; password_hash?: string | undefined; }returns
Promise<TestAccountWithActor>