From fdc68762078d9f9ddb7241173eb397d92fc67bea Mon Sep 17 00:00:00 2001 From: Martin Porwoll Date: Mon, 15 Dec 2025 13:27:44 +0000 Subject: [PATCH] fix(ci): add CI stub to security integration tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure CSRF validation works normally during security API tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- tests/int/security-api.int.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/int/security-api.int.spec.ts b/tests/int/security-api.int.spec.ts index 6fe37e5..f9af58b 100644 --- a/tests/int/security-api.int.spec.ts +++ b/tests/int/security-api.int.spec.ts @@ -7,6 +7,9 @@ import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest' import { NextRequest, NextResponse } from 'next/server' + +// Clear CI environment variable to ensure CSRF validation works normally during tests +vi.stubEnv('CI', '') import { generateTestCsrfToken, generateExpiredCsrfToken,