mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 20:54:11 +00:00
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:
parent
96cb6f1a47
commit
fdc6876207
1 changed files with 3 additions and 0 deletions
|
|
@ -7,6 +7,9 @@
|
||||||
|
|
||||||
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'
|
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'
|
||||||
import { NextRequest, NextResponse } from 'next/server'
|
import { NextRequest, NextResponse } from 'next/server'
|
||||||
|
|
||||||
|
// Clear CI environment variable to ensure CSRF validation works normally during tests
|
||||||
|
vi.stubEnv('CI', '')
|
||||||
import {
|
import {
|
||||||
generateTestCsrfToken,
|
generateTestCsrfToken,
|
||||||
generateExpiredCsrfToken,
|
generateExpiredCsrfToken,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue