@diplodoc/cli-tests 4.60.0 → 5.0.1
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/e2e/__snapshots__/include-toc.test.ts.snap +106 -106
- package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +303 -350
- package/e2e/__snapshots__/metadata.spec.ts.snap +124 -147
- package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
- package/e2e/__snapshots__/regression.test.ts.snap +906 -715
- package/e2e/__snapshots__/restricted-access.test.ts.snap +234 -0
- package/e2e/__snapshots__/rtl.spec.ts.snap +258 -308
- package/e2e/__snapshots__/translation.spec.ts.snap +366 -0
- package/e2e/errors.spec.ts +31 -0
- package/e2e/regression.test.ts +7 -2
- package/e2e/restricted-access.test.ts +21 -0
- package/e2e/translation.spec.ts +1 -1
- package/fixtures/cliAdapter.ts +41 -20
- package/fixtures/runners/binary.ts +18 -3
- package/fixtures/runners/source.ts +5 -5
- package/fixtures/runners/types.ts +7 -1
- package/fixtures/utils/file.ts +3 -3
- package/fixtures/utils/test.ts +6 -1
- package/mocks/errors/unreachable-link/input/exists.md +1 -0
- package/mocks/errors/unreachable-link/input/index.md +2 -0
- package/mocks/errors/unreachable-link/input/toc.yaml +1 -0
- package/mocks/include-toc/test6/input/toc.yaml +1 -0
- package/mocks/regression/input/1.md +2 -0
- package/mocks/regression/input/generic/1.md +3 -0
- package/mocks/regression/input/generic/2.md +3 -0
- package/mocks/regression/input/generic/3.md +1 -0
- package/mocks/regression/input/generic/Sub notes/1.md +3 -0
- package/mocks/regression/input/generic/Sub notes/2.md +3 -0
- package/mocks/regression/input/includes/deep.md +1 -0
- package/mocks/regression/input/includes.md +3 -0
- package/mocks/regression/input/redirects.yaml +6 -0
- package/mocks/regression/input/toc.yaml +7 -3
- package/mocks/restricted-access/test1/input/index.md +0 -0
- package/mocks/restricted-access/test1/input/plugins/index.md +0 -0
- package/mocks/restricted-access/test1/input/plugins/index2.md +0 -0
- package/mocks/restricted-access/test1/input/plugins/index3.md +0 -0
- package/mocks/restricted-access/test1/input/plugins/index4.md +4 -0
- package/mocks/restricted-access/test1/input/toc.yaml +28 -0
- package/mocks/restricted-access/test2/input/index.md +0 -0
- package/mocks/restricted-access/test2/input/plugins/index.md +0 -0
- package/mocks/restricted-access/test2/input/project/index.md +0 -0
- package/mocks/restricted-access/test2/input/toc.yaml +21 -0
- package/mocks/restricted-access/test3/input/a1.md +1 -0
- package/mocks/restricted-access/test3/input/folder1/a1.md +1 -0
- package/mocks/restricted-access/test3/input/folder1/folder2/a1.md +1 -0
- package/mocks/restricted-access/test3/input/folder1/folder2/toc.yaml +8 -0
- package/mocks/restricted-access/test3/input/folder1/toc.yaml +10 -0
- package/mocks/restricted-access/test3/input/index.md +0 -0
- package/mocks/restricted-access/test3/input/toc.yaml +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`Restricted access > Nested restricted access > filelist 1`] = `
|
|
4
|
+
"[
|
|
5
|
+
"plugins/index.md",
|
|
6
|
+
"project/index.md",
|
|
7
|
+
"toc.yaml"
|
|
8
|
+
]"
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
exports[`Restricted access > Nested restricted access 1`] = `
|
|
12
|
+
"---
|
|
13
|
+
metadata:
|
|
14
|
+
- name: generator
|
|
15
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
16
|
+
restricted-access:
|
|
17
|
+
- - admin
|
|
18
|
+
- manager
|
|
19
|
+
- - userA
|
|
20
|
+
- userB
|
|
21
|
+
---
|
|
22
|
+
"
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports[`Restricted access > Nested restricted access 2`] = `
|
|
26
|
+
"---
|
|
27
|
+
metadata:
|
|
28
|
+
- name: generator
|
|
29
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
30
|
+
restricted-access:
|
|
31
|
+
- - userA
|
|
32
|
+
- userB
|
|
33
|
+
---
|
|
34
|
+
"
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
exports[`Restricted access > Nested restricted access 3`] = `
|
|
38
|
+
"title: Yandex Flavored Markdown
|
|
39
|
+
items:
|
|
40
|
+
- name: Plugins
|
|
41
|
+
restricted-access:
|
|
42
|
+
- admin
|
|
43
|
+
- manager
|
|
44
|
+
items:
|
|
45
|
+
- name: Overview
|
|
46
|
+
href: plugins/index.md
|
|
47
|
+
restricted-access:
|
|
48
|
+
- userA
|
|
49
|
+
- userB
|
|
50
|
+
- name: Organizing a YFM project
|
|
51
|
+
items:
|
|
52
|
+
- name: Overview
|
|
53
|
+
href: project/index.md
|
|
54
|
+
restricted-access:
|
|
55
|
+
- userA
|
|
56
|
+
- userB
|
|
57
|
+
path: toc.yaml
|
|
58
|
+
"
|
|
59
|
+
`;
|
|
60
|
+
|
|
61
|
+
exports[`Restricted access > Nested toc restricted access > filelist 1`] = `
|
|
62
|
+
"[
|
|
63
|
+
"a1.md",
|
|
64
|
+
"folder1/a1.md",
|
|
65
|
+
"folder1/folder2/a1.md",
|
|
66
|
+
"toc.yaml"
|
|
67
|
+
]"
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
exports[`Restricted access > Nested toc restricted access 1`] = `
|
|
71
|
+
"---
|
|
72
|
+
metadata:
|
|
73
|
+
- name: generator
|
|
74
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
75
|
+
---
|
|
76
|
+
This is the /a1.md file content.
|
|
77
|
+
"
|
|
78
|
+
`;
|
|
79
|
+
|
|
80
|
+
exports[`Restricted access > Nested toc restricted access 2`] = `
|
|
81
|
+
"---
|
|
82
|
+
metadata:
|
|
83
|
+
- name: generator
|
|
84
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
85
|
+
restricted-access:
|
|
86
|
+
- - userAtoc2
|
|
87
|
+
- userBtoc2
|
|
88
|
+
- - userA
|
|
89
|
+
- userB
|
|
90
|
+
---
|
|
91
|
+
This is the /folder1/a1.md file content.
|
|
92
|
+
"
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
exports[`Restricted access > Nested toc restricted access 3`] = `
|
|
96
|
+
"---
|
|
97
|
+
metadata:
|
|
98
|
+
- name: generator
|
|
99
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
100
|
+
restricted-access:
|
|
101
|
+
- - userAtoc3
|
|
102
|
+
- userBtoc3
|
|
103
|
+
- - userA
|
|
104
|
+
- userB
|
|
105
|
+
---
|
|
106
|
+
This is the /folder1/folder1/a1.md file content.
|
|
107
|
+
"
|
|
108
|
+
`;
|
|
109
|
+
|
|
110
|
+
exports[`Restricted access > Nested toc restricted access 4`] = `
|
|
111
|
+
"items:
|
|
112
|
+
- name: A1
|
|
113
|
+
href: a1.md
|
|
114
|
+
- name: folder1
|
|
115
|
+
restricted-access:
|
|
116
|
+
- userA
|
|
117
|
+
- userB
|
|
118
|
+
items:
|
|
119
|
+
- name: A1
|
|
120
|
+
href: folder1/a1.md
|
|
121
|
+
restricted-access:
|
|
122
|
+
- userAtoc2
|
|
123
|
+
- userBtoc2
|
|
124
|
+
- name: folder1
|
|
125
|
+
items:
|
|
126
|
+
- name: A1
|
|
127
|
+
href: folder1/folder2/a1.md
|
|
128
|
+
restricted-access:
|
|
129
|
+
- userAtoc3
|
|
130
|
+
- userBtoc3
|
|
131
|
+
path: toc.yaml
|
|
132
|
+
"
|
|
133
|
+
`;
|
|
134
|
+
|
|
135
|
+
exports[`Restricted access > Simple restricted access > filelist 1`] = `
|
|
136
|
+
"[
|
|
137
|
+
"index.md",
|
|
138
|
+
"plugins/index.md",
|
|
139
|
+
"plugins/index2.md",
|
|
140
|
+
"plugins/index3.md",
|
|
141
|
+
"plugins/index4.md",
|
|
142
|
+
"toc.yaml"
|
|
143
|
+
]"
|
|
144
|
+
`;
|
|
145
|
+
|
|
146
|
+
exports[`Restricted access > Simple restricted access 1`] = `
|
|
147
|
+
"---
|
|
148
|
+
metadata:
|
|
149
|
+
- name: generator
|
|
150
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
151
|
+
restricted-access:
|
|
152
|
+
- - admin
|
|
153
|
+
---
|
|
154
|
+
"
|
|
155
|
+
`;
|
|
156
|
+
|
|
157
|
+
exports[`Restricted access > Simple restricted access 2`] = `
|
|
158
|
+
"---
|
|
159
|
+
metadata:
|
|
160
|
+
- name: generator
|
|
161
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
162
|
+
restricted-access:
|
|
163
|
+
- - admin
|
|
164
|
+
---
|
|
165
|
+
"
|
|
166
|
+
`;
|
|
167
|
+
|
|
168
|
+
exports[`Restricted access > Simple restricted access 3`] = `
|
|
169
|
+
"---
|
|
170
|
+
metadata:
|
|
171
|
+
- name: generator
|
|
172
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
173
|
+
restricted-access:
|
|
174
|
+
- - admin
|
|
175
|
+
- - admin
|
|
176
|
+
- user
|
|
177
|
+
---
|
|
178
|
+
"
|
|
179
|
+
`;
|
|
180
|
+
|
|
181
|
+
exports[`Restricted access > Simple restricted access 4`] = `
|
|
182
|
+
"---
|
|
183
|
+
metadata:
|
|
184
|
+
- name: generator
|
|
185
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
186
|
+
restricted-access:
|
|
187
|
+
- - admin
|
|
188
|
+
---
|
|
189
|
+
"
|
|
190
|
+
`;
|
|
191
|
+
|
|
192
|
+
exports[`Restricted access > Simple restricted access 5`] = `
|
|
193
|
+
"---
|
|
194
|
+
metadata:
|
|
195
|
+
- name: generator
|
|
196
|
+
content: Diplodoc Platform vDIPLODOC-VERSION
|
|
197
|
+
restricted-access:
|
|
198
|
+
- - admin
|
|
199
|
+
- - customInFile
|
|
200
|
+
---
|
|
201
|
+
"
|
|
202
|
+
`;
|
|
203
|
+
|
|
204
|
+
exports[`Restricted access > Simple restricted access 6`] = `
|
|
205
|
+
"title: Yandex Flavored Markdown
|
|
206
|
+
items:
|
|
207
|
+
- name: Yandex Flavored Markdown
|
|
208
|
+
href: index.md
|
|
209
|
+
restricted-access: admin
|
|
210
|
+
- name: Plugins
|
|
211
|
+
items:
|
|
212
|
+
- name: Overview
|
|
213
|
+
href: plugins/index.md
|
|
214
|
+
restricted-access:
|
|
215
|
+
- admin
|
|
216
|
+
- name: Plugins 2
|
|
217
|
+
restricted-access: admin
|
|
218
|
+
items:
|
|
219
|
+
- name: Overview 2
|
|
220
|
+
href: plugins/index2.md
|
|
221
|
+
restricted-access:
|
|
222
|
+
- admin
|
|
223
|
+
- user
|
|
224
|
+
- name: Overview 3
|
|
225
|
+
href: plugins/index3.md
|
|
226
|
+
restricted-access:
|
|
227
|
+
- admin
|
|
228
|
+
- name: Overview 4
|
|
229
|
+
href: plugins/index4.md
|
|
230
|
+
restricted-access:
|
|
231
|
+
- admin
|
|
232
|
+
path: toc.yaml
|
|
233
|
+
"
|
|
234
|
+
`;
|