Skip to main content

Variable: mockMerchant

@arolariu/website


@arolariu/website / data/mocks/merchant / mockMerchant

Variable: mockMerchant

const mockMerchant: Merchant

Defined in: data/mocks/merchant.ts:450

Pre-built mock merchant for consistent testing.

Remarks

Use Case: Use when you need a deterministic merchant across test cases.

Characteristics:

  • Fixed ID: "merchant-1"
  • Name: "Test Merchant"
  • Category: SUPERMARKET
  • Other properties are faker-generated but deterministic

Example

import {mockMerchant} from "@/data/mocks";

it("should process merchant correctly", () => {
const result = processMerchant(mockMerchant);
expect(result.merchantId).toBe("merchant-1");
});
// was this page useful?