@diplodoc/cli-tests 0.0.0-rc-toc-translation-202506181609 → 0.0.0-rc-anchor-lint-check-202506201214

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.
@@ -6,12 +6,12 @@ const generateMapTestTemplate = (
6
6
  testRootPath: string,
7
7
  args: TranslateRunArgs,
8
8
  ) => {
9
- test(testTitle, async () => {
9
+ test.skip(testTitle, async () => {
10
10
  const {inputPath, outputPath} = getTestPaths(testRootPath);
11
11
 
12
12
  await TestAdapter.testTranslatePass(inputPath, outputPath, args);
13
13
 
14
- await compareDirectories(outputPath);
14
+ await compareDirectories(outputPath, true);
15
15
  });
16
16
  };
17
17
 
@@ -43,18 +43,7 @@ describe('Translate command', () => {
43
43
  subcommand: 'extract',
44
44
  source: 'ru-RU',
45
45
  target: 'es-ES',
46
- additionalArgs: '--exclude ru/to-be-excluded.md',
47
- },
48
- );
49
-
50
- generateMapTestTemplate(
51
- 'filter files on extract with --strict-vars options',
52
- 'mocks/translation/dir-files',
53
- {
54
- subcommand: 'extract',
55
- source: 'ru-RU',
56
- target: 'es-ES',
57
- additionalArgs: '--strict-vars',
46
+ additionalArgs: '--exclude ru/_no-translate/*.md',
58
47
  },
59
48
  );
60
49
 
@@ -2,4 +2,6 @@
2
2
 
3
3
  [ссылка на файл не в toc.yaml](./aboba-not-in-toc.md)
4
4
 
5
- {% include [Описание](./_includes/test.md) %}
5
+ {% include [Описание](./_includes/test.md) %}
6
+
7
+
@@ -3,7 +3,6 @@ href: index.yaml
3
3
  items:
4
4
  - name: API Yandex Cloud
5
5
  href: index.yaml
6
- - include: {mode: merge, path: folder1/toc-i.yaml}
7
6
  - name: Yandex Flavored Markdown
8
7
  href: index-yfm.md
9
8
  items:
@@ -4,10 +4,4 @@ items:
4
4
  - name: Aboba
5
5
  href: aboba.md
6
6
  - name: Не переводить
7
- when: skip == 'prod'
8
- href: _no-translate/exclude.md
9
- - name: Нет переменной в vars
10
- when: novar == 'test'
11
- href: no-var-page.md
12
- - name: exclude-test
13
- href: to-be-excluded.md
7
+ href: _no-translate/exclude.md
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/cli-tests",
3
- "version": "0.0.0-rc-toc-translation-202506181609",
3
+ "version": "0.0.0-rc-anchor-lint-check-202506201214",
4
4
  "bin": {
5
5
  "diplodoc-cli-test": "bin.mjs"
6
6
  },
@@ -1,5 +0,0 @@
1
- translate:
2
- extract:
3
- vars:
4
- test: prod
5
- skip: dev
@@ -1,3 +0,0 @@
1
- ## Included A1
2
-
3
- TEST
@@ -1,3 +0,0 @@
1
- ## Included A1
2
-
3
- TEST
@@ -1,3 +0,0 @@
1
- items:
2
- - name: A1
3
- href: a1.md
@@ -1,3 +0,0 @@
1
- ## No var page
2
-
3
- This page might be translated or not. Depends on --strict-vars option.
@@ -1 +0,0 @@
1
- ## Excluded title