You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to build a list of multiple types of factories at the same time.
Something like... Replicator.build('user', {rainbow: true}, 3) // would return regular user, plus user with trait('hasCard') + user with trait('withEmail'). Or whatever. But return one instance of each type of User, in an array.
Or better yet, come up with an elegant syntax for building an array of different types of Factories from your choice.
I'd like to be able to build a list of multiple types of factories at the same time.
Something like... Replicator.build('user', {rainbow: true}, 3) // would return regular user, plus user with trait('hasCard') + user with trait('withEmail'). Or whatever. But return one instance of each type of User, in an array.
Or better yet, come up with an elegant syntax for building an array of different types of Factories from your choice.
Basically... trying to avoid doing
The text was updated successfully, but these errors were encountered: