-
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathfile-paths-test.ts.snap
More file actions
137 lines (94 loc) · 3.47 KB
/
Copy pathfile-paths-test.ts.snap
File metadata and controls
137 lines (94 loc) · 3.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`generate (file paths) custom path to rule docs and rules list generates the documentation 1`] = `
"<!-- begin auto-generated rules list -->
| Name |
| :------------------------- |
| [no-foo](no-foo/no-foo.md) |
<!-- end auto-generated rules list -->"
`;
exports[`generate (file paths) custom path to rule docs and rules list generates the documentation 2`] = `
"# no-foo
<!-- end auto-generated rule header -->
"
`;
exports[`generate (file paths) custom path to rule docs and rules list generates the documentation using a function for pathRuleDoc 1`] = `
"<!-- begin auto-generated rules list -->
| Name |
| :------------------------------- |
| [no-foo](rules/no-foo/no-foo.md) |
<!-- end auto-generated rules list -->"
`;
exports[`generate (file paths) custom path to rule docs and rules list generates the documentation using a function for pathRuleDoc 2`] = `
"# no-foo
<!-- end auto-generated rule header -->
"
`;
exports[`generate (file paths) empty array of rule lists (happens when CLI option is not passed) falls back to default rules list 1`] = `
"<!-- begin auto-generated rules list -->
| Name |
| :----------------------------- |
| [no-foo](docs/rules/no-foo.md) |
<!-- end auto-generated rules list -->"
`;
exports[`generate (file paths) lowercase README file generates the documentation 1`] = `
"<!-- begin auto-generated rules list -->
| Name |
| :----------------------------- |
| [no-foo](docs/rules/no-foo.md) |
<!-- end auto-generated rules list -->"
`;
exports[`generate (file paths) missing rule doc when initRuleDocs is true creates the rule doc 1`] = `
"# no-foo
<!-- end auto-generated rule header -->
"
`;
exports[`generate (file paths) missing rule doc when initRuleDocs is true creates the rule doc 2`] = `
"# no-bar
<!-- end auto-generated rule header -->
## Options
<!-- begin auto-generated rule options list -->
| Name |
| :-------- |
| \`option1\` |
<!-- end auto-generated rule options list -->
"
`;
exports[`generate (file paths) missing rule doc, initRuleDocs is true, and with ruleDocSectionInclude creates the rule doc including the mandatory section 1`] = `
"# no-foo
<!-- end auto-generated rule header -->
## Examples
"
`;
exports[`generate (file paths) missing rule doc, initRuleDocs is true, and with ruleDocSectionInclude creates the rule doc including the mandatory section 2`] = `
"# no-bar
<!-- end auto-generated rule header -->
## Examples
## Options
<!-- begin auto-generated rule options list -->
| Name |
| :-------- |
| \`option1\` |
<!-- end auto-generated rule options list -->
"
`;
exports[`generate (file paths) multiple rules lists generates the documentation 1`] = `
"<!-- begin auto-generated rules list -->
| Name |
| :----------------------------- |
| [no-foo](docs/rules/no-foo.md) |
<!-- end auto-generated rules list -->"
`;
exports[`generate (file paths) multiple rules lists generates the documentation 2`] = `
"<!-- begin auto-generated rules list -->
| Name |
| :-------------------------------- |
| [no-foo](../docs/rules/no-foo.md) |
<!-- end auto-generated rules list -->"
`;
exports[`generate (file paths) multiple rules lists generates the documentation 3`] = `
"<!-- begin auto-generated rules list -->
| Name |
| :------------------ |
| [no-foo](no-foo.md) |
<!-- end auto-generated rules list -->"
`;