Skip to content
New issue

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

mockFindAll should be able to also mockFindRecord #413

Open
luxzeitlos opened this issue Apr 7, 2020 · 0 comments
Open

mockFindAll should be able to also mockFindRecord #413

luxzeitlos opened this issue Apr 7, 2020 · 0 comments

Comments

@luxzeitlos
Copy link
Contributor

sometimes for scenarios this would be very useful. AFAIK there is no way to do this now. I tried this:

this.mockFindAll('user', 15)
  .get()
  .forEach(({ id }) => {
    this.mockFindRecord('user').returns({ id });
  })

but I this there should be an easy way for mocking during development. So I can have a list and then click on one item and then reload and it will just always have test data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant