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

Cannot write independent tests because of module cache #101

Open
timvahlbrock opened this issue May 21, 2021 · 1 comment
Open

Cannot write independent tests because of module cache #101

timvahlbrock opened this issue May 21, 2021 · 1 comment

Comments

@timvahlbrock
Copy link

Currently there is no possibility to create independent store instances to use for unit testing, because the module cache is reusing the same instance. There has been a function clearProxyCache, which is no out of used (it still exists but is literally empty). Perhaps something similar or a function to force the recreation of a store might be helpful. To help other users with this it would probably be good to re-add the "How to test" section to the readme that had been there in times of the clearProxyCache function.

@timvahlbrock
Copy link
Author

This fork actually repurposed the clearProxyCache function to clear all of the caches in this commit.

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