Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@inrupt/jest-jsdom-polyfills

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inrupt/jest-jsdom-polyfills

This package provides various polyfills needed on jest/jsdom when using the Inrupt SDKs

  • 3.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
35K
increased by15.74%
Maintainers
0
Weekly downloads
 
Created
Source

@inrupt/jest-jsdom-polyfills

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.

Installation

  1. npm install --save-dev @inrupt/jest-jsdom-polyfills

Usage:

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.

ESM / CJS Compatibility

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.

Keywords

FAQs

Package last updated on 19 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc