Skip to content

Helix - v0.0.8

Compare
Choose a tag to compare
@ItsJonQ ItsJonQ released this 06 Nov 19:21
· 69 commits to master since this release

Support single value HelixSpecs

Feature

This PR allows the creation of HelixSpecs which return a single value. For example:

const UserType = new HelixSpec(faker.random.arrayElement(['user', 'guest', 'admin']))
const User = new HelixSpec({
  id: faker.random.number(),
  name: faker.name.firstName(),
  location: faker.address.country(),
  type: UserType
})