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

Clear out storage manager #93

Open
ghost opened this issue Jan 12, 2017 · 1 comment
Open

Clear out storage manager #93

ghost opened this issue Jan 12, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 12, 2017

Since the storage manager is a singleton (which works really well in production), there tends to be pollution in testing environment.

It would be nice to have a easy way to either clear out the singleton or replace it with a new storage manager.

@juanca
Copy link
Contributor

juanca commented Jan 12, 2017

Yes. Things to clean up:

  • All models in all tracked collections
  • All cached responses
  • All expectations

Or better yet, we can expose a non-singleton storage manager for testing purposes...

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

No branches or pull requests

1 participant