🚀 DAY 4 OF LAUNCH WEEK: Introducing GitHub Actions Scanning Support.Learn more →
Socket
Book a DemoInstallSign in
Socket

cydom

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cydom

Cypress' DOM helpers outside Cypress

latest
npmnpm
Version
0.1.5
Version published
Weekly downloads
20
900%
Maintainers
1
Weekly downloads
 
Created
Source

cydom

Cypress' DOM helpers for everyone else!

Usage

const { isVisible } = require("cydom");
// or
import { isVisible } from "cydom";

Includes what Typescript definitions Cypress has as well!

Refer to https://docs.cypress.io/api/cypress-api/dom.html for documentation.

How

A nasty build script that extracts the DOM helpers from Cypress' monorepo and fiddles a bit to get them to import fine outside that context

Why

Cause they are fantastic! Cypress has put an immense amount of work into identifying all the little corner cases that render tests flakey. We can stand on their very high shoulders!

Thanks

Thanks to Cypress for publishing their code at all and for MIT licensing it so this kind of thing is possible. <3

FAQs

Package last updated on 24 Feb 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