eslint-plugin-jest 25.2.2 → 25.2.3
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [25.2.3](https://github.com/jest-community/eslint-plugin-jest/compare/v25.2.2...v25.2.3) (2021-11-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **no-deprecated-functions:** mark jest as an optional peer dependency ([#970](https://github.com/jest-community/eslint-plugin-jest/issues/970)) ([f468752](https://github.com/jest-community/eslint-plugin-jest/commit/f468752fc0aba89dd9bcce5fe676a04cb2fa6407))
|
|
7
|
+
|
|
1
8
|
## [25.2.2](https://github.com/jest-community/eslint-plugin-jest/compare/v25.2.1...v25.2.2) (2021-10-17)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -26,7 +26,7 @@ it('adds 1 + 2 to equal 3', () => {
|
|
|
26
26
|
|
|
27
27
|
```json
|
|
28
28
|
{
|
|
29
|
-
"jest/prefer-lowercase-
|
|
29
|
+
"jest/prefer-lowercase-title": [
|
|
30
30
|
"error",
|
|
31
31
|
{
|
|
32
32
|
"ignore": ["describe", "test"]
|
|
@@ -50,7 +50,7 @@ By default, none of these options are enabled (the equivalent of
|
|
|
50
50
|
Example of **correct** code for the `{ "ignore": ["describe"] }` option:
|
|
51
51
|
|
|
52
52
|
```js
|
|
53
|
-
/* eslint jest/prefer-lowercase-
|
|
53
|
+
/* eslint jest/prefer-lowercase-title: ["error", { "ignore": ["describe"] }] */
|
|
54
54
|
|
|
55
55
|
describe('Uppercase description');
|
|
56
56
|
```
|
|
@@ -58,7 +58,7 @@ describe('Uppercase description');
|
|
|
58
58
|
Example of **correct** code for the `{ "ignore": ["test"] }` option:
|
|
59
59
|
|
|
60
60
|
```js
|
|
61
|
-
/* eslint jest/prefer-lowercase-
|
|
61
|
+
/* eslint jest/prefer-lowercase-title: ["error", { "ignore": ["test"] }] */
|
|
62
62
|
|
|
63
63
|
test('Uppercase description');
|
|
64
64
|
```
|
|
@@ -66,7 +66,7 @@ test('Uppercase description');
|
|
|
66
66
|
Example of **correct** code for the `{ "ignore": ["it"] }` option:
|
|
67
67
|
|
|
68
68
|
```js
|
|
69
|
-
/* eslint jest/prefer-lowercase-
|
|
69
|
+
/* eslint jest/prefer-lowercase-title: ["error", { "ignore": ["it"] }] */
|
|
70
70
|
|
|
71
71
|
it('Uppercase description');
|
|
72
72
|
```
|
|
@@ -82,7 +82,7 @@ By default, nothing is allowed (the equivalent of `{ "allowedPrefixes": [] }`).
|
|
|
82
82
|
Example of **correct** code for the `{ "allowedPrefixes": ["GET"] }` option:
|
|
83
83
|
|
|
84
84
|
```js
|
|
85
|
-
/* eslint jest/prefer-lowercase-
|
|
85
|
+
/* eslint jest/prefer-lowercase-title: ["error", { "allowedPrefixes": ["GET"] }] */
|
|
86
86
|
|
|
87
87
|
describe('GET /live');
|
|
88
88
|
```
|
|
@@ -95,7 +95,7 @@ title starting with an upper-case letter.
|
|
|
95
95
|
Example of **correct** code for the `{ "ignoreTopLevelDescribe": true }` option:
|
|
96
96
|
|
|
97
97
|
```js
|
|
98
|
-
/* eslint jest/prefer-lowercase-
|
|
98
|
+
/* eslint jest/prefer-lowercase-title: ["error", { "ignoreTopLevelDescribe": true }] */
|
|
99
99
|
describe('MyClass', () => {
|
|
100
100
|
describe('#myMethod', () => {
|
|
101
101
|
it('does things', () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-jest",
|
|
3
|
-
"version": "25.2.
|
|
3
|
+
"version": "25.2.3",
|
|
4
4
|
"description": "Eslint rules for Jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@semantic-release/git": "^10.0.0",
|
|
97
97
|
"@types/dedent": "^0.7.0",
|
|
98
98
|
"@types/jest": "^27.0.0",
|
|
99
|
-
"@types/node": "^
|
|
99
|
+
"@types/node": "^16.0.0",
|
|
100
100
|
"@types/prettier": "^2.0.0",
|
|
101
101
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
102
102
|
"@typescript-eslint/parser": "^5.0.0",
|
|
@@ -131,6 +131,9 @@
|
|
|
131
131
|
"peerDependenciesMeta": {
|
|
132
132
|
"@typescript-eslint/eslint-plugin": {
|
|
133
133
|
"optional": true
|
|
134
|
+
},
|
|
135
|
+
"jest": {
|
|
136
|
+
"optional": true
|
|
134
137
|
}
|
|
135
138
|
},
|
|
136
139
|
"engines": {
|
|
@@ -155,5 +158,6 @@
|
|
|
155
158
|
},
|
|
156
159
|
"resolutions": {
|
|
157
160
|
"@typescript-eslint/experimental-utils": "^5.0.0"
|
|
158
|
-
}
|
|
161
|
+
},
|
|
162
|
+
"packageManager": "yarn@3.0.2"
|
|
159
163
|
}
|