Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
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

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