@diplodoc/cli-tests 0.0.0-rc-err-count-202505291233 → 0.0.0-rc-ci-optimization-test-202506191355

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.
Files changed (43) hide show
  1. package/e2e/__snapshots__/include-toc.test.ts.snap +98 -106
  2. package/e2e/__snapshots__/load-custom-resources.spec.ts.snap +66 -56
  3. package/e2e/__snapshots__/metadata.spec.ts.snap +19 -14
  4. package/e2e/__snapshots__/plugin-corner-cases.spec.ts.snap +0 -0
  5. package/e2e/__snapshots__/regression.test.ts.snap +764 -760
  6. package/e2e/__snapshots__/restricted-access.test.ts.snap +234 -0
  7. package/e2e/__snapshots__/rtl.spec.ts.snap +57 -47
  8. package/e2e/__snapshots__/translation.spec.ts.snap +366 -0
  9. package/e2e/errors.spec.ts +37 -0
  10. package/e2e/restricted-access.test.ts +21 -0
  11. package/fixtures/cliAdapter.ts +39 -20
  12. package/fixtures/runners/binary.ts +21 -3
  13. package/fixtures/runners/index.ts +3 -1
  14. package/fixtures/runners/source.ts +5 -5
  15. package/fixtures/runners/types.ts +7 -1
  16. package/fixtures/utils/file.ts +3 -3
  17. package/fixtures/utils/test.ts +6 -1
  18. package/mocks/errors/unreachable-link/input/exists.md +1 -0
  19. package/mocks/errors/unreachable-link/input/index.md +2 -0
  20. package/mocks/errors/unreachable-link/input/toc.yaml +1 -0
  21. package/mocks/regression/input/1.md +0 -4
  22. package/mocks/regression/input/_assets/5_1.png +0 -0
  23. package/mocks/regression/input/images.md +2 -0
  24. package/mocks/regression/input/includes.md +1 -0
  25. package/mocks/restricted-access/test1/input/index.md +0 -0
  26. package/mocks/restricted-access/test1/input/plugins/index.md +0 -0
  27. package/mocks/restricted-access/test1/input/plugins/index2.md +0 -0
  28. package/mocks/restricted-access/test1/input/plugins/index3.md +0 -0
  29. package/mocks/restricted-access/test1/input/plugins/index4.md +4 -0
  30. package/mocks/restricted-access/test1/input/toc.yaml +28 -0
  31. package/mocks/restricted-access/test2/input/index.md +0 -0
  32. package/mocks/restricted-access/test2/input/plugins/index.md +0 -0
  33. package/mocks/restricted-access/test2/input/project/index.md +0 -0
  34. package/mocks/restricted-access/test2/input/toc.yaml +21 -0
  35. package/mocks/restricted-access/test3/input/a1.md +1 -0
  36. package/mocks/restricted-access/test3/input/folder1/a1.md +1 -0
  37. package/mocks/restricted-access/test3/input/folder1/folder2/a1.md +1 -0
  38. package/mocks/restricted-access/test3/input/folder1/folder2/toc.yaml +8 -0
  39. package/mocks/restricted-access/test3/input/folder1/toc.yaml +10 -0
  40. package/mocks/restricted-access/test3/input/index.md +0 -0
  41. package/mocks/restricted-access/test3/input/toc.yaml +16 -0
  42. package/package.json +4 -3
  43. package/vitest.config.ts +1 -2
@@ -0,0 +1,4 @@
1
+ ---
2
+ restricted-access:
3
+ - - customInFile
4
+ ---
@@ -0,0 +1,28 @@
1
+ title: Yandex Flavored Markdown
2
+ items:
3
+ - name: Yandex Flavored Markdown
4
+ href: index.md
5
+ restricted-access: admin
6
+ - name: Plugins
7
+ items:
8
+ - name: Overview
9
+ href: plugins/index.md
10
+ restricted-access:
11
+ - admin
12
+ - name: Plugins 2
13
+ restricted-access: admin
14
+ items:
15
+ - name: Overview 2
16
+ href: plugins/index2.md
17
+ restricted-access:
18
+ - admin
19
+ - user
20
+ - name: Overview 3
21
+ href: plugins/index3.md
22
+ restricted-access:
23
+ - admin
24
+ - name: Overview 4
25
+ href: plugins/index4.md
26
+ restricted-access:
27
+ - admin
28
+
File without changes
@@ -0,0 +1,21 @@
1
+ title: Yandex Flavored Markdown
2
+ items:
3
+ - name: Plugins
4
+ restricted-access:
5
+ - admin
6
+ - manager
7
+ items:
8
+ - name: Overview
9
+ href: plugins/index.md
10
+ restricted-access:
11
+ - userA
12
+ - userB
13
+ - name: Organizing a YFM project
14
+ items:
15
+ - name: Overview
16
+ href: project/index.md
17
+ restricted-access:
18
+ - userA
19
+ - userB
20
+
21
+
@@ -0,0 +1 @@
1
+ This is the /a1.md file content.
@@ -0,0 +1 @@
1
+ This is the /folder1/a1.md file content.
@@ -0,0 +1 @@
1
+ This is the /folder1/folder1/a1.md file content.
@@ -0,0 +1,8 @@
1
+ items:
2
+ - name: A1
3
+ href: a1.md
4
+ restricted-access:
5
+ - userAtoc3
6
+ - userBtoc3
7
+
8
+
@@ -0,0 +1,10 @@
1
+ items:
2
+ - name: A1
3
+ href: a1.md
4
+ restricted-access:
5
+ - userAtoc2
6
+ - userBtoc2
7
+ - name: folder1
8
+ include:
9
+ mode: link
10
+ path: folder2/toc.yaml
File without changes
@@ -0,0 +1,16 @@
1
+ items:
2
+ - name: A1
3
+ href: a1.md
4
+ - name: folder1
5
+ restricted-access:
6
+ - userA
7
+ - userB
8
+ include:
9
+ mode: link
10
+ path: folder1/toc.yaml
11
+
12
+
13
+
14
+
15
+
16
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/cli-tests",
3
- "version": "0.0.0-rc-err-count-202505291233",
3
+ "version": "0.0.0-rc-ci-optimization-test-202506191355",
4
4
  "bin": {
5
5
  "diplodoc-cli-test": "bin.mjs"
6
6
  },
@@ -17,7 +17,8 @@
17
17
  ],
18
18
  "scripts": {
19
19
  "build": "false",
20
- "test": "vitest run"
20
+ "test": "vitest run",
21
+ "test:update": "vitest -u"
21
22
  },
22
23
  "publishConfig": {
23
24
  "access": "public"
@@ -26,7 +27,7 @@
26
27
  "@diplodoc/cli": "file:.."
27
28
  },
28
29
  "dependencies": {
29
- "@diplodoc/client": "^3.3.1",
30
+ "@diplodoc/client": "^3.6.3",
30
31
  "@types/node": "18.x",
31
32
  "@vitest/coverage-istanbul": "^3.1.1",
32
33
  "@vitest/coverage-v8": "^3.1.1",
package/vitest.config.ts CHANGED
@@ -17,10 +17,9 @@ export default defineConfig({
17
17
  environment: 'node',
18
18
  include: [
19
19
  'e2e/**/*.{test,spec}.ts',
20
- 'units/**/*.{test,spec}.ts',
21
20
  ...resolvedTestPaths.map((path) => `${path}/**/*.{test,spec}.ts`),
22
21
  ],
23
- exclude: ['node_modules', 'dist'],
22
+ exclude: ['node_modules'],
24
23
  coverage: {
25
24
  enabled: false,
26
25
  },