Commit d6eba80
committed
fix(test): bump jest-environment-jsdom to 30.4 to match jest
Every test suite was failing with:
TypeError: this._moduleMocker.clearMocksOnScope is not a function
at Runtime.resetModules (jest-runtime/build/index.js:3782:28)
Root cause: jest@30.4.0 ships jest-runtime@30.4.0 which calls
moduleMocker.clearMocksOnScope, but jest-environment-jsdom@30.3.0
provides jest-mock@30.3.0 in which that method does not yet exist.
Bumping jest-environment-jsdom to ^30.4.1 aligns its jest-mock with
jest-runtime's expectations and unblocks the suite (12 passed, 32 tests).
Signed-off-by: Lee Calcote <leecalcote@gmail.com>1 parent d7fcd69 commit d6eba80
2 files changed
Lines changed: 105 additions & 669 deletions
0 commit comments