- 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.
17 lines
509 B
TypeScript
17 lines
509 B
TypeScript
import { Test } from "@nestjs/testing";
|
|
import { AppService } from "./app.service";
|
|
|
|
describe("AppService", () => {
|
|
it("returns the exact public greeting through the Nest provider", async () => {
|
|
const module = await Test.createTestingModule({
|
|
providers: [AppService],
|
|
}).compile();
|
|
try {
|
|
expect(module.get(AppService).getHello()).toBe("Hello World!");
|
|
expect(module.get(AppService).getHello()).toBe("Hello World!");
|
|
} finally {
|
|
await module.close();
|
|
}
|
|
});
|
|
});
|