# Test Helpers
Reusable utilities for all test types.
**Available Helpers:**
## fixtures.ts
Load test data from fixture files.
```typescript
import { loadFixture, loadAllFixtures } from './fixtures';
const company = loadFixture('companies.json', 'acme-corp');
const all = loadAllFixtures('companies.json');
```
## mock-attio-client.ts
Mock implementation of AttioClient for unit and integration tests.
```typescript
import { createMockAttioClient } from './mock-attio-client';
const client = createMockAttioClient({
get: vi.fn().mockResolvedValue({ data: { ... } }),
post: vi.fn().mockResolvedValue({ data: { ... } }),
});
```
## safe-test-helper.ts
Safety wrapper for production tests (manual only).
```typescript
import { AttioSafeTestHelper } from './safe-test-helper';
const helper = new AttioSafeTestHelper();
const company = await helper.createTestCompany({
name: '[TEST] Company'
});
await helper.cleanup(); // Always cleanup
```
**Usage Guidelines:**
- Use MockAttioClient for unit/integration tests
- Use AttioSafeTestHelper ONLY for production tests
- Load fixtures for consistent test data
- Keep helpers simple and focused