fix(GRO-392): reinitAuth on config change, SSRF timeout, and trailing-slash URL fix #218
@@ -2,6 +2,12 @@ import { describe, it, expect, vi, beforeEach } from "vitest";
|
|||||||
import { Hono } from "hono";
|
import { Hono } from "hono";
|
||||||
import { authProviderRouter } from "../routes/authProvider.js";
|
import { authProviderRouter } from "../routes/authProvider.js";
|
||||||
|
|
||||||
|
// ─── Mock auth module ─────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
vi.mock("../lib/auth.js", () => ({
|
||||||
|
reinitAuth: vi.fn().mockResolvedValue(undefined),
|
||||||
|
}));
|
||||||
|
|
||||||
// ─── Types ────────────────────────────────────────────────────────────────────
|
// ─── Types ────────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
interface MockStaff {
|
interface MockStaff {
|
||||||
|
|||||||
Reference in New Issue
Block a user