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

ava-dom

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ava-dom

Port of jest-dom to ava.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ava-dom

Travis build status Coveralls NPM version Canonical Code Style Twitter Follow

Port of jest-dom to ava.

Installation

npm install --save-dev ava-dom

Configure ava to require ava-dom/shim before every test file.

{
  "ava": {
    "require": [
      "ava-dom/shim"
    ]
  }
}

Alternatively, just import and call shim function in ava test.

import ava from 'ava';
import {
  shim,
} from 'ava-dom';

shim();

Usage

ava-dom adds all jest-dom methods to ava assertions prototype, i.e. all jest-dom methods are accessible under ava's t variable.

import ava from 'ava';

test();

Compatibility with jest-dom

All jest-dom methods are available in ava-dom

Keywords

FAQs

Package last updated on 16 Sep 2020

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