(userId: string)
| 12 | config.files.rootPath = tempRootDir; |
| 13 | |
| 14 | function createMockUser(userId: string): User { |
| 15 | return { |
| 16 | id: userId, |
| 17 | email: `${userId}@example.com`, |
| 18 | hashed_password: 'unused-in-tests', |
| 19 | subscription: { external: {}, expires_at: '', updated_at: '' }, |
| 20 | status: 'active', |
| 21 | extra: { is_email_verified: true }, |
| 22 | created_at: new Date(), |
| 23 | }; |
| 24 | } |
| 25 | |
| 26 | async function setUpUser(): Promise<{ user: User; userRootPath: string }> { |
| 27 | const userId = crypto.randomUUID(); |