The faker
object in Helix is a very light-weight wrapper for Faker.js
import { createSpec, faker } from "@helpscout/helix";
const Dinosaur = createSpec({
id: faker.datatype.number(),
name: faker.name.firstName(),
location: faker.address.country(),
});
For a full list of all the available Faker methods, check out their documentation.
Helix has enhanced Faker with a couple of methods: