572 B
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 objectcreateTestDocument()- Create a test document objectsleep()- Wait for a specified number of millisecondscreateMockResponse()- Create a mock fetch response