Files

22 lines
572 B
Markdown

# @the-order/test-utils
Shared testing utilities for The Order monorepo.
## Usage
```typescript
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