
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@inrupt/jest-jsdom-polyfills
Advanced tools
This package provides various polyfills needed on jest/jsdom when using the Inrupt SDKs
This package contains polyfills for Web APIs that we use from the Inrupt SDKs that don't currently exist in jsdom which is used by Jest.
npm install --save-dev @inrupt/jest-jsdom-polyfillsAdd the following line to your Jest Test Setup file, usually you'll have this configured as jest.setup.ts or something similar.
import "@inrupt/jest-jsdom-polyfills"
Done, the SDKs should now have everything they need to be tested via jest / jsdom.
The Inrupt SDKs currently rely on some modules that require ESM, in order to load those with Jest, you need to opt into using ESM and configure your environment appropriately.
FAQs
This package provides various polyfills needed on jest/jsdom when using the Inrupt SDKs
The npm package @inrupt/jest-jsdom-polyfills receives a total of 20,974 weekly downloads. As such, @inrupt/jest-jsdom-polyfills popularity was classified as popular.
We found that @inrupt/jest-jsdom-polyfills demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.