ARES - authorized red-team engagement automation with dashboard, campaign scope, module orchestration, OPSEC controls, encrypted vault, and reporting.
Python active-directorycloud-securitydefensive-validationfastapigood-first-issuemitre-attackopsecreactred-teamreportingsecurity
fix(web): type fetch mock params in C5 CSRF tests to fix tsc build (#65)
kraii_d0a5cd7d0b7f
diff --git a/frontend/src/api/http.test.ts b/frontend/src/api/http.test.tsindex 68c50fb..eafa640 100644--- a/frontend/src/api/http.test.ts+++ b/frontend/src/api/http.test.ts@@ -196,7 +196,11 @@ describe("cookie-backed HTTP transport", () => {});it("attaches the CSRF header on a non-auth mutation (AUDIT run-1 C5)", async () => {- const fetchMock = vi.fn(async () => new Response(JSON.stringify({ ok: true }), { status: 200 }));+ const fetchMock = vi.fn(async (input: string, init?: RequestInit) => {+ void input;+ void init;+ return new Response(JSON.stringify({ ok: true }), { status: 200 });+ });vi.stubGlobal("fetch", fetchMock);const session = await import("./session");session.setAccessToken("memory-bearer");@@ -207,7 +211,11 @@ describe("cookie-backed HTTP transport", () => {});it("does not attach the CSRF header on a GET", async () => {- const fetchMock = vi.fn(async () => new Response(JSON.stringify({ ok: true }), { status: 200 }));+ const fetchMock = vi.fn(async (input: string, init?: RequestInit) => {+ void input;+ void init;+ return new Response(JSON.stringify({ ok: true }), { status: 200 });+ });vi.stubGlobal("fetch", fetchMock);const session = await import("./session");session.setAccessToken("memory-bearer");