Open ghost opened 7 years ago
I don't know much about fake-indexedDB and whether it supports the full indexedDB spec or not.
Well, It seems to work with the following workaround:
const Dexie = require('dexie')
Dexie.dependencies.indexedDB = require('fake-indexeddb')
Dexie.dependencies.IDBKeyRange = require('fake-indexeddb/lib/FDBKeyRange')
Thanks anyway (:
@ghost can you share your link of the unit test that you written .
This happens unit testing in node.js with fake-indexeddb