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

eslint-plugin-jest-playwright

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jest-playwright

ESLint globals for your Jest Playwright setup.

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
decreased by-6.32%
Maintainers
1
Weekly downloads
 
Created
Source

ESLint Jest Playwright

ESLint plugin for your Jest Playwright (jest-playwright) installation.

Installation

Yarn

yarn add -D eslint-plugin-jest-playwright

NPM

npm install -D eslint-plugin-jest-playwright

Usage

Add plugin:jest-playwright/recommended to your extends ESLint configuration. For example:

{
  "extends": ["plugin:jest-playwright/recommended"],
  "plugins": ["jest-playwright"]
}

Rules

missing-playwright-expect 🔧

Enforce Jest Playwright expect statements to be awaited.

Example

Example of incorrect code for this rule:

expect(page).toHaveText("text");

Example of correct code for this rule:

await expect(page).toHaveText("text");
Options

The rule accepts a non-required option which can be used to specify custom matchers which this rule should also warn about. This is useful when creating your own async matchers.

{
  "jest-playwright/missing-playwright-await": [
    "error",
    { "customMatchers": ["toHaveAttribute"] }
  ]
}

FAQs

Package last updated on 28 Apr 2021

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