@diplodoc/cli-tests 5.0.2 → 5.0.4

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.
@@ -83,10 +83,10 @@ metadata:
83
83
  - name: generator
84
84
  content: Diplodoc Platform vDIPLODOC-VERSION
85
85
  restricted-access:
86
- - - userAtoc2
87
- - userBtoc2
88
86
  - - userA
89
87
  - userB
88
+ - - userAtoc2
89
+ - userBtoc2
90
90
  ---
91
91
  This is the /folder1/a1.md file content.
92
92
  "
@@ -98,10 +98,10 @@ metadata:
98
98
  - name: generator
99
99
  content: Diplodoc Platform vDIPLODOC-VERSION
100
100
  restricted-access:
101
- - - userAtoc3
102
- - userBtoc3
103
101
  - - userA
104
102
  - userB
103
+ - - userAtoc3
104
+ - userBtoc3
105
105
  ---
106
106
  This is the /folder1/folder1/a1.md file content.
107
107
  "
@@ -1,6 +1,13 @@
1
+ import type {Report} from '../fixtures/runners/types';
2
+
1
3
  import {describe, expect, it} from 'vitest';
2
4
  import {TestAdapter, getTestPaths} from '../fixtures';
3
5
 
6
+ type TestResult = {
7
+ md: Report;
8
+ html: Report;
9
+ }
10
+
4
11
  function test(path: string, expect: Function) {
5
12
  it(path, async () => {
6
13
  const {inputPath, outputPath} = getTestPaths(path);
@@ -13,8 +20,7 @@ function test(path: string, expect: Function) {
13
20
  }
14
21
 
15
22
  describe('Errors', () => {
16
- test('mocks/errors/unreachable-link', ({md, html}) => {
17
- // console.log(md, html);
23
+ test('mocks/errors/unreachable-link', ({html}: TestResult) => {
18
24
  expectErrors(html, [
19
25
  'ERR index.md: 1: YFM003 / unreachable-link Link is unreachable [Context: "[Unreachable link: "exists.html"][existing file](./exists.md)"]',
20
26
  'ERR index.md: 2: YFM003 / unreachable-link Link is unreachable [Context: "[Unreachable link: "missed.html"][missed file](./missed.md)"]'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/cli-tests",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
4
4
  "bin": {
5
5
  "diplodoc-cli-test": "bin.mjs"
6
6
  },
@@ -27,7 +27,7 @@
27
27
  "@diplodoc/cli": "file:.."
28
28
  },
29
29
  "dependencies": {
30
- "@diplodoc/client": "^3.3.1",
30
+ "@diplodoc/client": "^3.6.3",
31
31
  "@types/node": "18.x",
32
32
  "@vitest/coverage-istanbul": "^3.1.1",
33
33
  "@vitest/coverage-v8": "^3.1.1",