🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

abdomen

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abdomen

Tiny utility to setup JSDOM globally for tests

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

abdomen

a tiny utility to setup JSDOM for tests

install

yarn add --dev abdomen

use

abdomen supports both modules and commonjs

modules

import 'abdomen/setup'

commonjs

require('abdomen/setup')

or

node -r abdomen/setup

api

import { setup, teardown } from 'abdomen'

const context = setup()
// context has two properties available
// context.jsdom is a reference to the JSDOM instance
// context.teardown is the same teardown function as imported

FAQs

Package last updated on 23 Jan 2022

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