eslint-plugin-jest-dom 5.10.1 → 5.10.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.
|
@@ -106,7 +106,7 @@ const create = context => {
|
|
|
106
106
|
},
|
|
107
107
|
//expect(element).toHaveAttribute('value', 'foo') / Property
|
|
108
108
|
//expect(element).toHaveAttribute('aria-valuenow', 'foo') / Property
|
|
109
|
-
[`CallExpression[callee.property.name
|
|
109
|
+
[`CallExpression[callee.property.name=/^toHave(Attribute|Property)$/][arguments.0.value=/^(value|aria-valuenow)$/][arguments.1][callee.object.callee.name=expect], CallExpression[callee.property.name=/^toHave(Attribute|Property)$/][arguments.0.value=/^(value|aria-valuenow)$/][arguments.1][callee.object.object.callee.name=expect][callee.object.property.name=not]`](node) {
|
|
110
110
|
const matcher = node.callee.property;
|
|
111
111
|
const [prop, value] = node.arguments;
|
|
112
112
|
context.report({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-jest-dom",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.2",
|
|
4
4
|
"description": "ESLint plugin to follow best practices and anticipate common mistakes when writing tests with jest-dom",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -39,6 +39,11 @@
|
|
|
39
39
|
"test:coverage": "npm test -- --coverage",
|
|
40
40
|
"test:update": "npm test:coverage -- --updateSnapshot"
|
|
41
41
|
},
|
|
42
|
+
"commitlint": {
|
|
43
|
+
"extends": [
|
|
44
|
+
"@commitlint/config-conventional"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
42
47
|
"dependencies": {
|
|
43
48
|
"requireindex": "^1.2.0"
|
|
44
49
|
},
|
|
@@ -48,7 +53,7 @@
|
|
|
48
53
|
"@testing-library/dom": "^10.4.1",
|
|
49
54
|
"@typescript-eslint/parser": "^8.0.0",
|
|
50
55
|
"eslint": "^9.0.0",
|
|
51
|
-
"eslint-config-prettier": "^
|
|
56
|
+
"eslint-config-prettier": "^10.1.8",
|
|
52
57
|
"eslint-doc-generator": "^3.0.0",
|
|
53
58
|
"eslint-plugin-import": "^2.32.0",
|
|
54
59
|
"eslint-plugin-jest": "^29.16.0",
|