Socket
Socket
Sign inDemoInstall

ava-dom

Package Overview
Dependencies
59
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ava-dom

Port of jest-dom to ava.


Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Install size
8.33 MB
Created
Weekly downloads
 

Readme

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

Last updated on 16 Sep 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc