@diplodoc/cli-tests 0.0.0-rc-toc-translation-202506181609 → 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.
- package/e2e/__snapshots__/translation.spec.ts.snap +394 -1214
- package/e2e/translation.spec.ts +3 -14
- package/mocks/translation/dir-files/input/ru/aboba.md +3 -1
- package/mocks/translation/dir-files/input/ru/nested/toc.yaml +0 -1
- package/mocks/translation/dir-files/input/ru/toc.yaml +1 -7
- package/package.json +1 -1
- package/mocks/translation/dir-files/input/.yfm +0 -5
- package/mocks/translation/dir-files/input/ru/nested/a1.md +0 -3
- package/mocks/translation/dir-files/input/ru/nested/folder1/a1.md +0 -3
- package/mocks/translation/dir-files/input/ru/nested/folder1/toc-i.yaml +0 -3
- package/mocks/translation/dir-files/input/ru/no-var-page.md +0 -3
- package/mocks/translation/dir-files/input/ru/to-be-excluded.md +0 -1
package/e2e/translation.spec.ts
CHANGED
|
@@ -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/
|
|
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
|
|
|
@@ -4,10 +4,4 @@ items:
|
|
|
4
4
|
- name: Aboba
|
|
5
5
|
href: aboba.md
|
|
6
6
|
- name: Не переводить
|
|
7
|
-
|
|
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 +0,0 @@
|
|
|
1
|
-
## Excluded title
|