fix(shop): render products from server data
Deploy Canina / deploy (push) Successful in 2m8s

This commit is contained in:
devops committed 2026-10-16 19:48:37 +00:00
1 parent 1de8fd9a60
commit bec76393bb
3 files changed
+25 -4

No files matched your search

@@ -144,6 +144,14 @@ const mockProducts = [
});
describe("ArchivePage Component", () => {
it("renders server-provided initial products without waiting for a client fetch", () => {
render(<ArchivePage initialProducts={mockProducts as any} />);
expect(screen.getAllByText("گلوکوزامین مفاصل").length).toBeGreaterThan(0);
expect(productService.getProducts).not.toHaveBeenCalled();
});
beforeEach(() => {
vi.clearAllMocks();