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

zucchini and mock #512

Open
unional opened this issue Mar 8, 2023 · 0 comments
Open

zucchini and mock #512

unional opened this issue Mar 8, 2023 · 0 comments

Comments

@unional
Copy link
Collaborator

unional commented Mar 8, 2023

the steps does not have a way to specify the mocks.

Maybe:

const { run } = scenario.mock(...)
run('some step', { mock: ... }, ...inputs)
run('some step', { mock: [mockForSpec1, mockForSpec2, ...] }, ...inputs)

The caller now needs to know which code the step spec(es) on, and the spec order, which is a down side.

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