Registry / testing / eslint-plugin-jest-playwright

eslint-plugin-jest-playwright

JSON →
library0.9.0jsnpmunverified

ESLint plugin providing Playwright-specific lint rules and globals for jest-playwright test files. Version 0.9.0 was the last release (2022); the project has been superseded by eslint-plugin-playwright (v2.x) which supports both Playwright test runner and jest-playwright. Tracks Playwright best practices like missing awaits, no conditionals in tests, and valid titles. No longer actively maintained; users should migrate to eslint-plugin-playwright for ongoing fixes and ESLint v8/v9/v10 support.

npm install eslint-plugin-jest-playwright
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-JEST
E
eslint-plugin-jest-playwright
testingjavascriptv0.9.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import plugin from 'eslint-plugin-jest-playwright'
const plugin = require('eslint-plugin-jest-playwright')
Plugin ships as CommonJS; both import and require work.
rules
import { rules } from 'eslint-plugin-jest-playwright'
const { rules } = require('eslint-plugin-jest-playwright')
rules object is available as a named export.
configs
import { configs } from 'eslint-plugin-jest-playwright'
import configs from 'eslint-plugin-jest-playwright'
configs is a named export, not default.

Configure ESLint with jest-playwright recommended rules and enable custom globals.

// .eslintrc.js module.exports = { plugins: ['jest-playwright'], extends: ['plugin:jest-playwright/recommended'], env: { 'jest-playwright/globals': true, }, rules: { 'jest-playwright/expect-expect': 'warn', }, }; // test.js const { test, expect } = require('@playwright/test'); test('homepage title', async ({ page }) => { await page.goto('https://example.com'); await expect(page).toHaveTitle(/Example/); });
Debug
Known issues
deprecatedThis package is deprecated. Use eslint-plugin-playwright instead.
fix
Replace 'eslint-plugin-jest-playwright' with 'eslint-plugin-playwright' in your ESLint config. See https://github.com/playwright-community/eslint-plugin-playwright for migration.
affects: >=0.0.0
breakingPlugin does not support ESLint v9 flat config.
fix
Migrate to eslint-plugin-playwright which supports flat config in v2.x.
affects: >=0.0.0
gotchaNo longer receives updates. Bug fixes and new features are only in eslint-plugin-playwright.
fix
Switch to eslint-plugin-playwright.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'jest-playwright' declared in '.eslintrc': Cannot find module 'eslint-plugin-jest-playwright'
Package not installed.
fix
npm install eslint-plugin-jest-playwright --save-dev
ESLint couldn't determine the plugin 'jest-playwright' uniquely
Both eslint-plugin-jest-playwright and eslint-plugin-playwright are installed and provide overlapping rules.
fix
Remove eslint-plugin-jest-playwright and use only eslint-plugin-playwright.
Upgrade
Version history
0.9.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-jest-playwright — npm install eslint-plugin-jest-playwright · libregistry