eslint-plugin-jest 28.9.0 → 28.10.0
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.
|
@@ -53,6 +53,9 @@ var _default = exports.default = (0, _utils2.createRule)({
|
|
|
53
53
|
MemberExpression(node) {
|
|
54
54
|
if (node.parent?.type === _utils.AST_NODE_TYPES.CallExpression) {
|
|
55
55
|
const jestFnCall = (0, _utils2.parseJestFnCall)((0, _utils2.findTopMostCallExpression)(node.parent), context);
|
|
56
|
+
if (jestFnCall?.type === 'jest' && jestFnCall.members.length >= 1 && (0, _utils2.isIdentifier)(jestFnCall.members[0], 'mocked')) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
56
59
|
if (jestFnCall?.type === 'expect') {
|
|
57
60
|
const {
|
|
58
61
|
matcher
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-jest",
|
|
3
|
-
"version": "28.
|
|
3
|
+
"version": "28.10.0",
|
|
4
4
|
"description": "ESLint rules for Jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"optional": true
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
"packageManager": "yarn@3.8.
|
|
123
|
+
"packageManager": "yarn@3.8.7",
|
|
124
124
|
"engines": {
|
|
125
125
|
"node": "^16.10.0 || ^18.12.0 || >=20.0.0"
|
|
126
126
|
},
|