Using the Builder
factory
.for('user')
.state('active')
.with({
email: 'test@test.com',
})
.create();Builder Methods
state(...string)
factory.for(User).state('active', 'with-posts');with(partial)
factory.for(User).with({
name: 'john',
});make([int, [partial]])
create([int, [partial]])
Last updated
Was this helpful?