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

support spec store #531

Open
unional opened this issue Apr 12, 2023 · 1 comment
Open

support spec store #531

unional opened this issue Apr 12, 2023 · 1 comment

Comments

@unional
Copy link
Collaborator

unional commented Apr 12, 2023

Support a spec store so that within one spec, the test has an option to store repeated calls.

The main usage of this store is for Zucchini,
where the step can store cached data without relaying on module scope,
which does not work when there are multiple tests from the same test suite.

@unional
Copy link
Collaborator Author

unional commented Apr 29, 2023

i.e., something like:

defineStep('...', ({ store } , ...) => {
  store.get(...)
  store.set(...)
})

The store will persist within one test, or one test suite. Will need to see what are the use case of each and then see how to support them

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