eslint-plugin-jest 28.10.1 → 28.11.1

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.
@@ -30,5 +30,5 @@ Examples of **correct** code for this rule:
30
30
  ```js
31
31
  expect(x).toBe(5);
32
32
  expect(name).not.toEqual('Carl');
33
- expect(myObj).toStrictEqual(thatObj);
33
+ expect(myObj).not.toStrictEqual(thatObj);
34
34
  ```
@@ -56,7 +56,7 @@ This rule is enabled by default.
56
56
  },
57
57
  minArgs: {
58
58
  type: 'number',
59
- minimum: 1,
59
+ minimum: 0,
60
60
  },
61
61
  maxArgs: {
62
62
  type: 'number',
@@ -50,7 +50,7 @@ var _default = exports.default = (0, _utils2.createRule)({
50
50
  description: 'Disallow large snapshots'
51
51
  },
52
52
  messages: {
53
- noSnapshot: '`{{ lineCount }}`s should begin with lowercase',
53
+ noSnapshot: 'Expected to not encounter a Jest snapshot but one was found that is {{ lineCount }} lines long',
54
54
  tooLongSnapshots: 'Expected Jest snapshot to be smaller than {{ lineLimit }} lines but was {{ lineCount }} lines long'
55
55
  },
56
56
  type: 'suggestion',
@@ -7,8 +7,7 @@ exports.createPaddingRule = exports.StatementType = exports.PaddingType = void 0
7
7
  var _utils = require("@typescript-eslint/utils");
8
8
  var astUtils = _interopRequireWildcard(require("./ast-utils"));
9
9
  var _misc = require("./misc");
10
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
11
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
12
11
  /**
13
12
  * Require/fix newlines around jest functions
14
13
  *
@@ -96,7 +96,7 @@ var _default = exports.default = (0, _utils2.createRule)({
96
96
  },
97
97
  minArgs: {
98
98
  type: 'number',
99
- minimum: 1
99
+ minimum: 0
100
100
  },
101
101
  maxArgs: {
102
102
  type: 'number',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-jest",
3
- "version": "28.10.1",
3
+ "version": "28.11.1",
4
4
  "description": "ESLint rules for Jest",
5
5
  "keywords": [
6
6
  "eslint",
@@ -84,6 +84,7 @@
84
84
  "@types/eslint": "^8.4.6",
85
85
  "@types/jest": "^29.0.0",
86
86
  "@types/node": "^16.0.0",
87
+ "@types/semver": "^7.5.8",
87
88
  "@typescript-eslint/eslint-plugin": "^6.0.0",
88
89
  "@typescript-eslint/parser": "^6.0.0",
89
90
  "@typescript-eslint/utils": "^6.0.0",
@@ -92,7 +93,7 @@
92
93
  "dedent": "^1.5.0",
93
94
  "eslint": "^7.0.0 || ^8.0.0",
94
95
  "eslint-config-prettier": "^10.0.0",
95
- "eslint-doc-generator": "^1.0.0",
96
+ "eslint-doc-generator": "^2.0.0",
96
97
  "eslint-plugin-eslint-plugin": "^6.0.0",
97
98
  "eslint-plugin-import": "^2.25.1",
98
99
  "eslint-plugin-n": "^17.0.0",