- Backend (NestJS): 82 suites, 641 tests passing; 0 ESLint errors; 0 tsc errors. Hardened SSL cert/key matching, SSRF IP pinning, and eBank validation. - Admin Panel (Vite/React): 48 suites, 300 tests passing; 0 ESLint errors; 0 tsc errors. Full coverage across all pages and settings. - Storefront (Next.js): 62 suites, 368 tests passing; 0 ESLint errors; 0 tsc errors. - Fixed unmount lifecycle guards, promise error handling, and component edge cases.
30 lines
903 B
TypeScript
30 lines
903 B
TypeScript
import { Test, TestingModule } from "@nestjs/testing";
|
|
import { AdminService } from "./admin.service";
|
|
import { PrismaService } from "../prisma/prisma.service";
|
|
import { RedisService } from "../redis/redis.service";
|
|
import { RevalidationService } from "../common/revalidation/revalidation.service";
|
|
|
|
describe("AdminService", () => {
|
|
let service: AdminService;
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
providers: [
|
|
AdminService,
|
|
{ provide: PrismaService, useValue: {} },
|
|
{ provide: RedisService, useValue: {} },
|
|
{
|
|
provide: RevalidationService,
|
|
useValue: { revalidateTag: jest.fn(), revalidatePath: jest.fn() },
|
|
},
|
|
],
|
|
}).compile();
|
|
|
|
service = module.get<AdminService>(AdminService);
|
|
});
|
|
|
|
it("should be defined", () => {
|
|
expect(service).toBeDefined();
|
|
});
|
|
});
|