Socket
Socket
Sign inDemoInstall

eslint-plugin-jest

Package Overview
Dependencies
Maintainers
11
Versions
325
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jest - npm Package Compare versions

Comparing version 26.1.0-next.1 to 26.1.0-next.2

5

docs/rules/no-if.md
# Disallow conditional logic (`no-if`)
## Deprecated
This rule has been deprecated in favor of
[`no-conditional-in-test`](no-conditional-in-test.md).
Conditional logic in tests is usually an indication that a test is attempting to

@@ -4,0 +9,0 @@ cover too much, and not testing the logic it intends to. Each branch of code

2

lib/rules/no-if.js

@@ -33,2 +33,4 @@ "use strict";

},
deprecated: true,
replacedBy: ['no-conditional-in-test'],
schema: [],

@@ -35,0 +37,0 @@ type: 'suggestion'

2

package.json
{
"name": "eslint-plugin-jest",
"version": "26.1.0-next.1",
"version": "26.1.0-next.2",
"description": "ESLint rules for Jest",

@@ -5,0 +5,0 @@ "keywords": [

@@ -170,3 +170,2 @@ <div align="center">

| [no-identical-title](docs/rules/no-identical-title.md) | Disallow identical titles | ![recommended][] | |
| [no-if](docs/rules/no-if.md) | Disallow conditional logic | | |
| [no-interpolation-in-snapshots](docs/rules/no-interpolation-in-snapshots.md) | Disallow string interpolation inside snapshots | ![recommended][] | |

@@ -173,0 +172,0 @@ | [no-jasmine-globals](docs/rules/no-jasmine-globals.md) | Disallow Jasmine globals | ![recommended][] | ![fixable][] |

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