dumbmatter / fakeIndexedDB

A pure JS in-memory implementation of the IndexedDB API
Apache License 2.0
562 stars 69 forks source link

3.1.6 regression: `ReferenceError: setImmediate is not defined` #71

Closed ai closed 2 years ago

ai commented 2 years ago

After updating to 3.1.6 I got an error:

ReferenceError: setImmediate is not defined
      at Object.<anonymous> (node_modules/fake-indexeddb/build/lib/scheduling.js:28:21)
      at Object.<anonymous> (node_modules/fake-indexeddb/build/FDBTransaction.js:33:20)
      at Object.<anonymous> (node_modules/fake-indexeddb/build/FDBDatabase.js:27:24)
      at Object.<anonymous> (node_modules/fake-indexeddb/build/FDBFactory.js:30:21)
      at Object.<anonymous> (node_modules/fake-indexeddb/build/fakeIndexedDB.js:3:20)
      at Object.<anonymous> (node_modules/fake-indexeddb/build/index.js:3:23)

I am using Jest 27.3.1 with "testEnvironment": "jsdom".

dumbmatter commented 2 years ago

Thanks, fixed in 3.1.7