Closed thaggie closed 1 month ago
Thank you for reporting @thaggie! :slightly_smiling_face:
It seems like some code continues to run after the environment was shut down (and the Window and MutationObservers has been destroyed).
I have added a fix that checks if it has been destroyed, which should solve your problem.
You can read more about the release here: https://github.com/capricorn86/happy-dom/releases/tag/v14.10.3
We're using
@swc/jest
with@happy-dom/jest-environment@14.7.1
/happy-dom@14.7.1
, (upgrading to X.10.2 doesn't seem to help).We're seeing a lot of errors logged from MutationListener which is causing a lot of noise in our unit test logs.