mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 10:52:08 +01:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user