import { describe, expect, it } from "vitest"; import { AppService } from "./app.service"; import { AppController } from "./app.controller"; describe("AppController", () => { const appService = new AppService(); const controller = new AppController(appService); describe("getHello", () => { it('should return "Mosaic Stack API"', () => { expect(controller.getHello()).toBe("Mosaic Stack API"); }); }); describe("getHealth", () => { it("should return health status", () => { const result = controller.getHealth(); expect(result.success).toBe(true); expect(result.data.status).toBe("healthy"); expect(result.data.timestamp).toBeDefined(); }); }); }); describe("AppService", () => { const service = new AppService(); it('should return "Mosaic Stack API"', () => { expect(service.getHello()).toBe("Mosaic Stack API"); }); });