eslint-plugin-jest 28.11.0 → 28.11.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.
|
@@ -15,7 +15,7 @@ var _default = exports.default = (0, _utils.createRule)({
|
|
|
15
15
|
description: 'Disallow commented out tests'
|
|
16
16
|
},
|
|
17
17
|
messages: {
|
|
18
|
-
commentedTests: '
|
|
18
|
+
commentedTests: 'Do not comment out tests'
|
|
19
19
|
},
|
|
20
20
|
schema: [],
|
|
21
21
|
type: 'suggestion'
|
|
@@ -50,7 +50,7 @@ var _default = exports.default = (0, _utils2.createRule)({
|
|
|
50
50
|
description: 'Disallow large snapshots'
|
|
51
51
|
},
|
|
52
52
|
messages: {
|
|
53
|
-
noSnapshot: '
|
|
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',
|
|
@@ -28,7 +28,7 @@ var _default = exports.default = (0, _utils.createRule)({
|
|
|
28
28
|
},
|
|
29
29
|
fixable: 'code',
|
|
30
30
|
messages: {
|
|
31
|
-
|
|
31
|
+
unexpectedCase: '`{{ method }}`s should begin with lowercase'
|
|
32
32
|
},
|
|
33
33
|
schema: [{
|
|
34
34
|
type: 'object',
|
|
@@ -94,7 +94,7 @@ var _default = exports.default = (0, _utils.createRule)({
|
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
context.report({
|
|
97
|
-
messageId: '
|
|
97
|
+
messageId: 'unexpectedCase',
|
|
98
98
|
node: node.arguments[0],
|
|
99
99
|
data: {
|
|
100
100
|
method: jestFnCall.name
|
|
@@ -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
|
|
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
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-jest",
|
|
3
|
-
"version": "28.11.
|
|
3
|
+
"version": "28.11.2",
|
|
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": "^
|
|
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",
|