Closed Kullersj closed 3 years ago
Thanks for reporting! Looks like jest
removed setImmediate
for DOM testing environments recently: https://github.com/facebook/jest/pull/11222
dynalite
doesn't use the latest version of memdown
which doesn't depend on setImmidiate
so it might be that the only option is to patch setImmidate
before importing dynalite? :/
Is your testing environment set to js-dom
? https://jestjs.io/docs/configuration#testenvironment-string, can you try using Node
instead?
Ok. Going to use a polyfill. PR incoming.
Just pushed to master, but this was the solution https://github.com/freshollie/jest-dynalite/commit/043acba41892f20425c94d4ec4f1c8c40f7562e0
Thanks so much for the fast help! Patiently waiting on the next published version to use the update 😄
Nice! Should be release as v3.4.2
very soon!
This should now be released
Hi, I recently upgraded to jest 27 and am running into some issues setting up my tests.
Seems that this issue is similar to #54
I have a
jest.setupBeforeEnv.js
file containingI also have a
jest.setupAfterEnv.js
containingAnd finally my config has
When tests run I immediately get this error
I had no issues when I was using jest 26
Package Versions:
Using Node 14.17.1
Appreciate any help