()
| 9 | } from '@ngneat/falso'; |
| 10 | |
| 11 | const 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 | |
| 24 | export const createUser = <T extends Partial<ReturnType<typeof generateUser>>>( |
| 25 | overrides?: T, |
no outgoing calls
no test coverage detected