
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@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-polyfills
Add 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 24,277 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 CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.