testing/db_entities.ts view source
(db: Db, options: { username: string; password_hash?: string | undefined; }): Promise<TestAccountWithActor> import {create_test_account_with_actor} from '@fuzdev/fuz_app/testing/db_entities.js'; 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. The username is stored lowercased, as every production
creation path stores it and the account_username_lowercase CHECK
requires.
db
options
{ username: string; password_hash?: string | undefined; }returns
Promise<TestAccountWithActor>