- 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.
23 lines
617 B
TypeScript
23 lines
617 B
TypeScript
import { Test, TestingModule } from "@nestjs/testing";
|
|
import { AppController } from "./app.controller";
|
|
import { AppService } from "./app.service";
|
|
|
|
describe("AppController", () => {
|
|
let appController: AppController;
|
|
|
|
beforeEach(async () => {
|
|
const app: TestingModule = await Test.createTestingModule({
|
|
controllers: [AppController],
|
|
providers: [AppService],
|
|
}).compile();
|
|
|
|
appController = app.get<AppController>(AppController);
|
|
});
|
|
|
|
describe("root", () => {
|
|
it('should return "Hello World!"', () => {
|
|
expect(appController.getHello()).toBe("Hello World!");
|
|
});
|
|
});
|
|
});
|