Engineering Guide
Strategies for Realistic Mock Data
The Danger of "Lorem Ipsum"
Testing your UI with perfect strings like "Test User" masks CSS overflow bugs and unexpected text wrapping. Real data is messy. Names are long, addresses contain unexpected characters, and fields are often null.
Faker Libraries
Tools like Faker.js use deterministic seed values to generate consistent, realistic data. When defining schemas in JSONMock, we use a similar syntax.
| Data Type | Why it matters |
|---|---|
| UUIDs | Ensures unique keys in React lists. |
| Timestamps | Tests timezone formatting logic in the UI. |
| Emails | Tests overflow on long domains. |
Try it yourself using our Generator tool.