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
Add observation for Dexie users #75
Comments
That works, but I agree, we should have an easier way of doing this! I also had a type error with the 'auto' import in my Angular Jasmine project. It was complaining that indexedDB can't be assigned and that it is a getter on window. I managed to get passed that typeerror by doing |
@JJosephttg do you have an example repo that is showing an error for the auto import? I was not aware of that. |
When using Dexie.js, it caches the global indexedDB variable, so resetting the db state won't work as expected. An easy fix is to manually handle each constructor call to explicitly use a new instance of fakeIndexedDB or add a getter to override the value in your test setup like this:
So far I've tracked this back to
3.0.3
which is the version we're currently using.The text was updated successfully, but these errors were encountered: