You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should handle CSS interface method calls without crashing.
Actual behavior
Crashes with "ReferenceError: CSS is not defined"
Additional context
Apparently this is caused by jest-environment-jsdom using outdated version of jsdom which did not have support for CSS interface at the time. So either jsdom should be updated or at least provide official workarounds in the documentation for situations where jest-environment-jsdom does not handle a specific web API.
Environment
OS: Windows 11
npm v10.2.3
node v18.19.0
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
29.7.0
Steps to reproduce
jest
andjest-environment-jsdom
jest.config.json
with{"testEnvironment": "jsdom"}
css.test.js
with following content:Expected behavior
Should handle CSS interface method calls without crashing.
Actual behavior
Crashes with "ReferenceError: CSS is not defined"
Additional context
Apparently this is caused by
jest-environment-jsdom
using outdated version ofjsdom
which did not have support for CSS interface at the time. So eitherjsdom
should be updated or at least provide official workarounds in the documentation for situations wherejest-environment-jsdom
does not handle a specific web API.Environment
The text was updated successfully, but these errors were encountered: