eslint-plugin-jest 26.1.0-next.1 → 26.1.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -167,7 +167,6 @@ installations requiring long-term consistency.
167
167
  | [no-focused-tests](docs/rules/no-focused-tests.md) | Disallow focused tests | ![recommended][] | ![suggest][] |
168
168
  | [no-hooks](docs/rules/no-hooks.md) | Disallow setup and teardown hooks | | |
169
169
  | [no-identical-title](docs/rules/no-identical-title.md) | Disallow identical titles | ![recommended][] | |
170
- | [no-if](docs/rules/no-if.md) | Disallow conditional logic | | |
171
170
  | [no-interpolation-in-snapshots](docs/rules/no-interpolation-in-snapshots.md) | Disallow string interpolation inside snapshots | ![recommended][] | |
172
171
  | [no-jasmine-globals](docs/rules/no-jasmine-globals.md) | Disallow Jasmine globals | ![recommended][] | ![fixable][] |
173
172
  | [no-jest-import](docs/rules/no-jest-import.md) | Disallow importing Jest | ![recommended][] | |
@@ -1,5 +1,10 @@
1
1
  # Disallow conditional logic (`no-if`)
2
2
 
3
+ ## Deprecated
4
+
5
+ This rule has been deprecated in favor of
6
+ [`no-conditional-in-test`](no-conditional-in-test.md).
7
+
3
8
  Conditional logic in tests is usually an indication that a test is attempting to
4
9
  cover too much, and not testing the logic it intends to. Each branch of code
5
10
  executing within an if statement will usually be better served by a test devoted
@@ -30,6 +30,8 @@ var _default = (0, _utils2.createRule)({
30
30
  messages: {
31
31
  conditionalInTest: 'Test should not contain {{ condition }} statements.'
32
32
  },
33
+ deprecated: true,
34
+ replacedBy: ['no-conditional-in-test'],
33
35
  schema: [],
34
36
  type: 'suggestion'
35
37
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-jest",
3
- "version": "26.1.0-next.1",
3
+ "version": "26.1.0-next.2",
4
4
  "description": "ESLint rules for Jest",
5
5
  "keywords": [
6
6
  "eslint",