()
| 44 | const signUp = async (email: string): Promise<string> => (await signUpIdentity(email)).token; |
| 45 | |
| 46 | const signInBootstrap = async (): Promise<AuthenticatedIdentity> => { |
| 47 | const response = await handler( |
| 48 | new Request(`${BASE}/api/auth/sign-in/email`, { |
| 49 | method: "POST", |
| 50 | headers: { "content-type": "application/json" }, |
| 51 | body: JSON.stringify({ |
| 52 | email: process.env.EXECUTOR_BOOTSTRAP_ADMIN_EMAIL, |
| 53 | password: process.env.EXECUTOR_BOOTSTRAP_ADMIN_PASSWORD, |
| 54 | }), |
| 55 | }), |
| 56 | ); |
| 57 | expect(response.status).toBe(200); |
| 58 | return identityFromResponse(response); |
| 59 | }; |
| 60 | |
| 61 | const mcp = (token: string, body: unknown, sessionId?: string, browser = false) => |
| 62 | handler( |
no test coverage detected