We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In my server I defined a factory
factories: { story: Factory.extend<UserStory>({ get userStory() { return faker.name.jobDescriptor(); }, get name() { return faker.name.title(); }, get link() { return faker.internet.url(); }, get status(): StoryStatus { const num = getRandomInt(1, 4) as 1 | 2 | 3; //ranom if (num === 1) { return "Construction"; } else if (num === 2) { return "Design"; } else { return "Release"; } }, get proxy() { return faker.name.firstName(); }, }), },
But when I call createList in my seeds function I am just getting a duplicate object for each of the 20 values
seeds(server) { server.createList("story", 20); }
I even tried just doing
seeds(server) { server.create("story"); server.create("story"); server.create("story"); }
and each server.create() give me the same value.
I want it so I am give a unique object with different properties for each value, but it doesnt seem to be working.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In my server I defined a factory
But when I call createList in my seeds function I am just getting a duplicate object for each of the 20 values
I even tried just doing
and each server.create() give me the same value.
I want it so I am give a unique object with different properties for each value, but it doesnt seem to be working.
The text was updated successfully, but these errors were encountered: