You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Set up lint and test
* Add travis setup
* Add lint-staged
* Remove babel
* Format markdown files witg prettier
* Run tests in node environment
* Update lockfile
* Remove more flow, and force strict mode
* Support node 4
This plugin exports a recommended configuration that enforces good testing practices.
65
+
This plugin exports a recommended configuration that enforces good testing
66
+
practices.
61
67
62
-
To enable this configuration use the `extends` property in your `.eslintrc` config file:
68
+
To enable this configuration use the `extends` property in your `.eslintrc`
69
+
config file:
63
70
64
71
```json
65
72
{
66
73
"extends": ["plugin:jest/recommended"]
67
74
}
68
75
```
69
76
70
-
See [ESLint documentation](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) for more information about extending configuration files.
Copy file name to clipboardExpand all lines: docs/rules/no-identical-title.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,15 @@
1
1
# Disallow identical titles (no-identical-title)
2
2
3
-
Having identical titles for two different tests or test suites may create confusion. For example, when a test with the same title as another test in the same test suite fails, it is harder to know which one failed and thus harder to fix.
3
+
Having identical titles for two different tests or test suites may create
4
+
confusion. For example, when a test with the same title as another test in the
5
+
same test suite fails, it is harder to know which one failed and thus harder to
6
+
fix.
4
7
5
8
## Rule Details
6
9
7
-
This rule looks at the title of every test and test suites. It will report when two test suites or two test cases at the same level of a test suite have the same title.
10
+
This rule looks at the title of every test and test suites. It will report when
11
+
two test suites or two test cases at the same level of a test suite have the
12
+
same title.
8
13
9
14
The following patterns are considered warnings:
10
15
@@ -17,7 +22,8 @@ describe('foo', () => {
17
22
// ...
18
23
});
19
24
20
-
describe('baz', () => { // Has the same title as a previous test suite
25
+
describe('baz', () => {
26
+
// Has the same title as a previous test suite
21
27
// ...
22
28
});
23
29
});
@@ -37,7 +43,8 @@ describe('foo', () => {
37
43
it('should work', () => {});
38
44
});
39
45
40
-
describe('baz', () => { // Has the same title as a previous test suite
46
+
describe('baz', () => {
47
+
// Has the same title as a previous test suite
41
48
// Has the same name as a test in a sibling test suite, which is fine
0 commit comments