{"id":19534,"library":"eslint-config-jest-enzyme","title":"eslint-config-jest-enzyme","description":"ESLint shareable config for jest-environment-enzyme globals. Current version 7.1.2, released August 2020. This package is part of the enzyme-matchers monorepo from Formidable Labs. It defines Jest and Enzyme global variables (e.g., mount, shallow, render) to prevent ESLint warnings when using jest-environment-enzyme. Only useful in combination with that environment. Low maintenance cadence; no major changes after v7.0.0.","status":"maintenance","version":"7.1.2","language":"javascript","source_language":"en","source_url":"https://github.com/FormidableLabs/enzyme-matchers","tags":["javascript","eslint","jest","enzyme"],"install":[{"cmd":"npm install eslint-config-jest-enzyme","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-jest-enzyme","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-jest-enzyme","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"The preset is referenced as 'jest-enzyme', not the full npm package name.","wrong":"{\n  \"extends\": [\"eslint-config-jest-enzyme\"]\n}","symbol":"extends","correct":"{\n  \"extends\": [\"jest-enzyme\"]\n}"},{"note":"Use the environment-specific directive to enable globals per file.","wrong":"/* global mount, shallow */","symbol":"jest-enzyme globals","correct":"/* eslint-env jest-enzyme/globals */"},{"note":"Setting 'jest' env alone does not include enzyme globals; use the jest-enzyme environment.","wrong":"{\n  \"env\": {\n    \"jest\": true\n  }\n}","symbol":"env","correct":"{\n  \"env\": {\n    \"jest-enzyme/globals\": true\n  }\n}"}],"quickstart":{"code":"// .eslintrc.js\nmodule.exports = {\n  extends: ['jest-enzyme'],\n  env: {\n    'jest-enzyme/globals': true,\n  },\n  rules: {},\n};","lang":"javascript","description":"Configures ESLint to acknowledge jest-environment-enzyme globals like mount, shallow, render."},"warnings":[{"fix":"Replace all uses of toHaveTagName with toHaveDisplayName.","message":"v7.0.0: toHaveTagName renamed to toHaveDisplayName","severity":"breaking","affected_versions":">=7.0.0"},{"fix":"Consider migrating to @testing-library/jest-dom or custom ESLint rules.","message":"Package is in maintenance mode with no active development","severity":"deprecated","affected_versions":">=7.0.0"},{"fix":"Ensure test files match the pattern or override overrides in config.","message":"ESLint config only applies to test files ending in *.test.js","severity":"gotcha","affected_versions":">=7.0.0"}],"env_vars":null,"search_vec":"'2020':20 '7.1.2':17 'august':19 'cadenc':64 'chang':67 'combin':58 'config':3,8 'current':15 'defin':35 'e.g':41 'environ':12,53,61 'enzym':5,13,28,38,54,73 'enzyme-match':27 'eslint':2,6,47,71 'eslint-config-jest-enzym':1 'formid':32 'global':14,39 'javascript':70 'jest':4,11,36,52,72 'jest-environment-enzym':10,51 'lab':33 'low':62 'mainten':63 'major':66 'matcher':29 'monorepo':30 'mount':42 'packag':22 'part':24 'prevent':46 'releas':18 'render':44 'shallow':43 'shareabl':7 'use':50,56 'v7.0.0':69 'variabl':40 'version':16 'warn':48","created_at":"2026-04-25T11:18:19.058857+00:00","updated_at":"2026-04-25T11:18:19.058857+00:00","problems":[{"fix":"Run npm install eslint-config-jest-enzyme --save-dev","cause":"Missing dependency.","error":"Error: Cannot find module 'eslint-config-jest-enzyme'"},{"fix":"Install eslint-plugin-jest-enzyme or ensure the correct extends value.","cause":"Extending 'jest-enzyme' without also installing the jest-enzyme plugin.","error":"Definition for rule 'jest-enzyme' was not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/FormidableLabs/enzyme-matchers","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-config-jest-enzyme","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}