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
Mock dexie #664
Labels
test
Testing and project configuration
Comments
I'm with problems too trying to mock using fake-indexeddb:
|
@shresthabijay Could you take a stab at this? If we can mock dexie then we can expand our test coverage to include the local db. |
Sure! |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was not able to successfully mock dexie in
setupTests.js
. I tried conditionally mocking withindb.js
itself, which fixesinitDB
, but the tests still fail. All db calls have to be ignored until this is solved.Based on dexie/Dexie.js#495 (comment)
Also tried this to no avail:
The text was updated successfully, but these errors were encountered: