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 - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

lib/index.js

16

package.json
{
"name": "eslint-plugin-jest-playwright",
"description": "ESLint globals for your Jest Playwright setup.",
"version": "0.2.1",
"main": "index.js",
"version": "0.3.0",
"main": "lib/index.js",
"repository": "https://github.com/mxschmitt/eslint-plugin-jest-playwright",
"author": "Max Schmitt <max@schmitt.mx>",
"license": "MIT"
"license": "MIT",
"files": [
"lib"
],
"scripts": {
"test": "jest"
},
"devDependencies": {
"eslint": "^7.25.0",
"jest": "^26.6.3"
}
}

56

README.md

@@ -1,5 +0,19 @@

# ESLint Jest Playwright globals
# ESLint Jest Playwright
> ESLint globals for your [Jest](https://jestjs.io/) [Playwright](https://github.com/microsoft/playwright) ([jest-playwright](https://github.com/mmarkelov/jest-playwright/)) installation.
> ESLint plugin for your [Jest](https://jestjs.io/) [Playwright](https://github.com/microsoft/playwright) ([jest-playwright](https://github.com/mmarkelov/jest-playwright/)) installation.
## Installation
Yarn
```txt
yarn add -D eslint-plugin-jest-playwright
```
NPM
```txt
npm install -D eslint-plugin-jest-playwright
```
## Usage

@@ -11,20 +25,38 @@

{
"extends": [
"plugin:jest-playwright/recommended"
]
"extends": ["plugin:jest-playwright/recommended"],
"plugins": ["jest-playwright"]
}
```
## Installation
## Rules
Yarn
### `missing-playwright-expect` 🔧
```txt
yarn add -D eslint-plugin-jest-playwright
Enforce Jest Playwright expect statements to be awaited.
#### Example
Example of **incorrect** code for this rule:
```js
expect(page).toHaveText("text");
```
NPM
Example of **correct** code for this rule:
```txt
npm install -D eslint-plugin-jest-playwright
```js
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.
```json
{
"jest-playwright/missing-playwright-await": [
"error",
{ "customMatchers": ["toHaveAttribute"] }
]
}
```
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