Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@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 36,726 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 0 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.