mirror of
https://github.com/willchen96/mike.git
synced 2026-07-26 23:51:08 +02:00
test: drop mocks of removed getUserIdFromRequest helper
The integration tests landed on main after this branch was cut and mocked the helper this PR deletes. Vitest factory mocks don't validate against the real module shape, so the extra key was harmless but misleading. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
3bea53ff7b
commit
80d14b86fc
6 changed files with 0 additions and 6 deletions
|
|
@ -41,7 +41,6 @@ function mockSupabase() {
|
|||
|
||||
vi.mock("../../lib/supabase", () => ({
|
||||
createServerSupabase: vi.fn(() => mockSupabase()),
|
||||
getUserIdFromRequest: vi.fn(async () => "u1"),
|
||||
}));
|
||||
|
||||
// Authenticate every request as user "u1" without exercising the real Supabase
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ function mockSupabase() {
|
|||
|
||||
vi.mock("../../lib/supabase", () => ({
|
||||
createServerSupabase: vi.fn(() => mockSupabase()),
|
||||
getUserIdFromRequest: vi.fn(async () => "u1"),
|
||||
}));
|
||||
|
||||
vi.mock("../../middleware/auth", () => ({
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ function mockSupabase() {
|
|||
|
||||
vi.mock("../../lib/supabase", () => ({
|
||||
createServerSupabase: vi.fn(() => mockSupabase()),
|
||||
getUserIdFromRequest: vi.fn(async () => "u1"),
|
||||
}));
|
||||
|
||||
vi.mock("../../middleware/auth", () => ({
|
||||
|
|
|
|||
|
|
@ -68,7 +68,6 @@ function mockSupabase() {
|
|||
|
||||
vi.mock("../../lib/supabase", () => ({
|
||||
createServerSupabase: vi.fn(() => mockSupabase()),
|
||||
getUserIdFromRequest: vi.fn(async () => "u1"),
|
||||
}));
|
||||
|
||||
vi.mock("../../middleware/auth", () => ({
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ function mockSupabase() {
|
|||
|
||||
vi.mock("../../lib/supabase", () => ({
|
||||
createServerSupabase: vi.fn(() => mockSupabase()),
|
||||
getUserIdFromRequest: vi.fn(async () => "u1"),
|
||||
}));
|
||||
|
||||
vi.mock("../../middleware/auth", () => ({
|
||||
|
|
|
|||
|
|
@ -106,7 +106,6 @@ function mockSupabase() {
|
|||
|
||||
vi.mock("../../lib/supabase", () => ({
|
||||
createServerSupabase: vi.fn(() => mockSupabase()),
|
||||
getUserIdFromRequest: vi.fn(async () => "u1"),
|
||||
}));
|
||||
|
||||
// requireAuth always authenticates u1. requireMfaIfEnrolled is a reconfigurable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue