Files
the_order/packages/test-utils/README.md

572 B

@the-order/test-utils

Shared testing utilities for The Order monorepo.

Usage

import { createTestUser, createTestDocument, sleep } from '@the-order/test-utils';

const user = createTestUser({ email: 'custom@example.com' });
const doc = createTestDocument({ title: 'My Document' });
await sleep(1000);

Available Utilities

  • createTestUser() - Create a test user object
  • createTestDocument() - Create a test document object
  • sleep() - Wait for a specified number of milliseconds
  • createMockResponse() - Create a mock fetch response