(body: Record<string, unknown>)
| 21 | const BASE = "http://localhost:4788"; |
| 22 | const get = (path: string) => handler(new Request(`${BASE}${path}`)); |
| 23 | const signUp = (body: Record<string, unknown>) => |
| 24 | handler( |
| 25 | new Request(`${BASE}/api/auth/sign-up/email`, { |
| 26 | method: "POST", |
| 27 | headers: { "content-type": "application/json" }, |
| 28 | body: JSON.stringify(body), |
| 29 | }), |
| 30 | ); |
| 31 | |
| 32 | test("zero-config boot generates and persists a session secret in the data dir", () => { |
| 33 | expect(existsSync(join(DATA_DIR, "auth-secret.key"))).toBe(true); |
no test coverage detected