fix(ci): add CI stub to security integration tests

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 <noreply@anthropic.com>
This commit is contained in:
Martin Porwoll 2025-12-15 13:27:44 +00:00
parent 96cb6f1a47
commit fdc6876207

View file

@ -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,