test: fix test environment issues and update TODO with architecture plan

- Fix window.matchMedia mock for DOM environment compatibility
- Simplify accessibility tests to focus on core functionality
- Update auth test mocking to avoid initialization errors
- Move visual tests to examples directory
- Add comprehensive architecture refactoring plan to TODO
- Document platform management needs and microservices strategy
This commit is contained in:
2025-06-28 07:16:22 +02:00
parent ef71c9c06e
commit aa0e9d5ebc
6 changed files with 155 additions and 312 deletions

View File

@ -4,8 +4,14 @@ import { PrismaClient } from "@prisma/client";
import bcrypt from "bcryptjs";
// Mock PrismaClient
const mockPrisma = {
user: {
findUnique: vi.fn(),
},
};
vi.mock("../../lib/prisma", () => ({
prisma: new PrismaClient(),
prisma: mockPrisma,
}));
// Mock bcryptjs