HelixSpec is the class that gets returned by the createSpec() function.
const Dinosaur = createSpec({
id: faker.datatype.number(),
name: faker.name.firstName(),
location: faker.address.country(),
});
// Returns a HelixSpec| Argument | Type | Description |
|---|---|---|
shape |
object |
Object containing key/value pairs to construct the fixture data. |
HelixSpec contains a handful of methods: