MCPcopy Index your code
hub / github.com/alan2207/bulletproof-react / generateUser

Function generateUser

apps/nextjs-app/src/testing/data-generators.ts:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9} from '@ngneat/falso';
10
11const generateUser = () => ({
12 id: randUuid() + Math.random(),
13 firstName: randUserName({ withAccents: false }),
14 lastName: randUserName({ withAccents: false }),
15 email: randEmail(),
16 password: randPassword(),
17 teamId: randUuid(),
18 teamName: randCompanyName(),
19 role: 'ADMIN',
20 bio: randParagraph(),
21 createdAt: Date.now(),
22});
23
24export const createUser = <T extends Partial<ReturnType<typeof generateUser>>>(
25 overrides?: T,

Callers 2

createUserFunction · 0.70
createUserFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected