doc-detective 2.13.0-dev.0 → 2.13.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.
Files changed (38) hide show
  1. package/.github/FUNDING.yml +14 -14
  2. package/.github/dependabot.yml +11 -11
  3. package/.github/workflows/docker-image.yml +19 -19
  4. package/.github/workflows/electron-publish.yml +17 -17
  5. package/.github/workflows/npm-publish.yml +67 -67
  6. package/.github/workflows/npm-test.yaml +49 -49
  7. package/CONTRIBUTIONS.md +27 -27
  8. package/LICENSE +20 -20
  9. package/README.md +126 -126
  10. package/dev/dev.spec.json +62 -62
  11. package/dev/index.js +5 -5
  12. package/doc-detective.svg +26 -0
  13. package/package.json +44 -43
  14. package/samples/.doc-detective.json +82 -90
  15. package/samples/{doc-content.md → doc-content-detect.md} +10 -8
  16. package/samples/doc-content-inline-tests.md +28 -28
  17. package/samples/docker-hello.spec.json +14 -0
  18. package/samples/http.spec.json +26 -0
  19. package/samples/kitten-search-inline.md +15 -0
  20. package/samples/kitten-search.spec.json +28 -0
  21. package/samples/tests.spec.json +70 -70
  22. package/samples/variables.env +4 -4
  23. package/src/index.js +84 -84
  24. package/src/utils.js +190 -188
  25. package/test/artifacts/cleanup.spec.json +18 -18
  26. package/test/artifacts/config.json +42 -42
  27. package/test/artifacts/doc-content.md +17 -17
  28. package/test/artifacts/env +2 -2
  29. package/test/artifacts/httpRequest.spec.json +55 -55
  30. package/test/artifacts/runShell.spec.json +29 -29
  31. package/test/artifacts/setup.spec.json +18 -18
  32. package/test/artifacts/test.spec.json +60 -60
  33. package/test/runCoverage.test.js +24 -18
  34. package/test/runTests.test.js +29 -22
  35. package/test/test-config.json +12 -12
  36. package/test/test-results.json +124 -124
  37. package/test/utils.test.js +210 -204
  38. package/.doc-detective.json +0 -63
package/README.md CHANGED
@@ -1,126 +1,126 @@
1
- # <img src="https://github.com/doc-detective/doc-detective/blob/main/icon.png" width=50 style="vertical-align:middle;margin-bottom:7px"/> Doc Detective: The Documentation Testing Framework
2
-
3
- ![Current version](https://img.shields.io/github/package-json/v/doc-detective/doc-detective?color=orange)
4
- [![Discord Shield](https://img.shields.io/badge/chat-on%20discord-purple)](https://discord.gg/2M7wXEThfF)
5
- [![Docs Shield](https://img.shields.io/badge/docs-doc--detective.com-blue)](https://doc-detective.com)
6
-
7
- Doc Detective is doc content testing framework that makes it easy to keep your docs accurate and up-to-date. You write tests, and Doc Detective runs them directly against your product to make sure your docs match your user experience. Whether it’s a UI-based process or a series of API calls, Doc Detective can help you find doc bugs before your users do.
8
-
9
- Doc Detective ingests test specifications and text files, parses them for testable actions, then executes those actions in a browser. The results (PASS/FAIL and context) are output as a JSON object so that other pieces of infrastructure can parse and manipulate them as needed.
10
-
11
- This project handles test parsing and web-based UI testing---it doesn't support results reporting or notifications. This framework is a part of testing infrastructures and needs to be complemented by other components.
12
-
13
- ## Components
14
-
15
- Doc Detective has multiple components to integrate with your workflows as you need it to:
16
-
17
- - Doc Detective (this repo): A standalone tool that enables testing without a separate Node project.
18
- - [Doc Detective Core](https://github.com/doc-detective/doc-detective-core): An NPM package that provides the testing functionality.
19
- - [Doc Detective Docs](https://github.com/doc-detective/doc-detective.github.io): Source files for [doc-detective.com](https://doc-detective.com).
20
-
21
- ## Install
22
-
23
- 1. Install prerequisites:
24
-
25
- - [Node.js](https://nodejs.org/) (tested on v18 and v20)
26
-
27
- 1. In a terminal, install Doc Detective globally:
28
-
29
- ```bash
30
- npm i -g doc-detective
31
- ```
32
-
33
- If you don't install Doc Detective globally, you'll be prompted to install the first time you run an `npx` command.
34
-
35
- ## (Optional) Get sample files
36
-
37
- To test a few samples, clone the repo and navigate to the `samples` directory:
38
-
39
- ```bash
40
- git clone https://github.com/doc-detective/doc-detective.git
41
- cd doc-detective/samples
42
- ```
43
-
44
- ## Run tests
45
-
46
- To run your tests, use the `runTests` command:
47
-
48
- ```bash
49
- npx doc-detective runTests
50
- ```
51
-
52
- By default, Doc Detective scans the current directory for valid tests, but you can specify your test file with the `--input` argument. For example, to run tests in a file named `doc-content-inline-tests.md`, run the following command:
53
-
54
- ```bash
55
- npx doc-detective runTests --input doc-content-inline-tests.md
56
- ```
57
-
58
- To customize your test, file type, and directory options, create a `.doc-detective.json` [config](https://doc-detective.com/reference/schemas/config.html) file. If a `.doc-detective.json` file exists in the directory when you run the comment, Doc Detective loads the config. Otherwise, you can specify a config path with the `--config` argument.
59
-
60
- ```bash
61
- npx doc-detective runTests --config .doc-detective.json
62
- ```
63
-
64
- **Note**: All paths are relative to the current working directory, regardless where the config file is located.
65
-
66
- You can override config options with command-line arguments. For example, to run tests in a file named `tests.spec.json`, even if that isn't included in your config, run the following command:
67
-
68
- ```bash
69
- npx doc-detective runTests --config .doc-detective.json --input tests.spec.json
70
- ```
71
-
72
- ## Check your test coverage
73
-
74
- You can check the test coverage of your documentation source files with the `runCoverage` command, specifying the source file or directory of source files with the `--input` argument. Doc Detective identifies potential areas of test coverage with file-format-specific regex, and supports CommonMark syntax natively. If you want to test coverage of a file with different syntax, update your the `fileTypes` object of your [config](https://doc-detective.com/reference/schemas/config.html) file accordingly.
75
-
76
- ```bash
77
- npx doc-detective runCoverage --config .doc-detective.json --input doc-content.md
78
- ```
79
-
80
- ## Concepts
81
-
82
- - [**Test specification**](https://doc-detective.com/reference/schemas/specification.html): A group of tests to run in one or more contexts. Conceptually parallel to a document.
83
- - [**Test**](https://doc-detective.com/reference/schemas/test.html): A sequence of steps to perform. Conceptually parallel to a procedure.
84
- - **Step**: A portion of a test that includes a single action. Conceptually parallel to a step in a procedure.
85
- - **Action**: The task a performed in a step. Doc Detective supports a variety of actions:
86
- - [**checkLink**](https://doc-detective.com/reference/schemas/checkLink.html): Check if a URL returns an acceptable status code from a GET request.
87
- - [**find**](https://doc-detective.com/reference/schemas/find.html): Check if an element exists with the specified selector.
88
- - [**goTo**](https://doc-detective.com/reference/schemas/goTo.html): Navigate to a specified URL.
89
- - [**httpRequest**](https://doc-detective.com/reference/schemas/httpRequest.html): Perform a generic HTTP request, for example to an API.
90
- - [**runShell**](https://doc-detective.com/reference/schemas/runShell.html): Perform a native shell command.
91
- - [**saveScreenshot**](https://doc-detective.com/reference/schemas/saveScreenshot.html): Take a screenshot in PNG format.
92
- - [**setVariables**](https://doc-detective.com/reference/schemas/setVariables.html): Load environment variables from a `.env` file.
93
- - [**startRecording**](https://doc-detective.com/reference/schemas/startRecording.html) and [**stopRecording**](https://doc-detective.com/reference/schemas/stopRecording.html): Capture a video of test execution.
94
- - [**typeKeys**](https://doc-detective.com/reference/schemas/typeKeys.html): Type keys. To type special keys, begin and end the string with `$` and use the special key’s enum. For example, to type the Escape key, enter `$ESCAPE$`.
95
- - [**wait**](https://doc-detective.com/reference/schemas/wait.html): Pause before performing the next action.
96
- - [**Context**](https://doc-detective.com/reference/schemas/context.html): An application and platforms that support the tests.
97
-
98
- ## Roadmap
99
-
100
- Future updates may include support for the following items:
101
-
102
- - Apps: iOS Safari, Android Chrome, native Windows, native macOS, native Linux
103
- - Platforms: iOS, Android
104
- - Commands: `suggestTests` stable release
105
-
106
- ## Develop
107
-
108
- To develop Doc Detective, clone the repo and install dependencies:
109
-
110
- ```bash
111
- git clone https://github.com/doc-detective/doc-detective.git
112
- cd doc-detective
113
- npm i
114
- ```
115
-
116
- To run commands, use the same `npx` commands as above.
117
-
118
- Make sure you review the [contributions guide](CONTRIBUTIONS.md) before submitting a pull request.
119
-
120
- ## Contributions
121
-
122
- Looking to help out? See our [contributions guide](CONTRIBUTIONS.md) for more info. If you can't contribute code, you can still help by reporting issues, suggesting new features, improving the documentation, or sponsoring the project.
123
-
124
- ## License
125
-
126
- This project uses the [MIT license](https://github.com/doc-detective/doc-detective/blob/master/LICENSE).
1
+ # <img src="https://github.com/doc-detective/doc-detective/blob/main/icon.png" width=50 style="vertical-align:middle;margin-bottom:7px"/> Doc Detective: The Documentation Testing Framework
2
+
3
+ ![Current version](https://img.shields.io/github/package-json/v/doc-detective/doc-detective?color=orange)
4
+ [![Discord Shield](https://img.shields.io/badge/chat-on%20discord-purple)](https://discord.gg/2M7wXEThfF)
5
+ [![Docs Shield](https://img.shields.io/badge/docs-doc--detective.com-blue)](https://doc-detective.com)
6
+
7
+ Doc Detective is doc content testing framework that makes it easy to keep your docs accurate and up-to-date. You write tests, and Doc Detective runs them directly against your product to make sure your docs match your user experience. Whether it’s a UI-based process or a series of API calls, Doc Detective can help you find doc bugs before your users do.
8
+
9
+ Doc Detective ingests test specifications and text files, parses them for testable actions, then executes those actions in a browser. The results (PASS/FAIL and context) are output as a JSON object so that other pieces of infrastructure can parse and manipulate them as needed.
10
+
11
+ This project handles test parsing and web-based UI testing---it doesn't support results reporting or notifications. This framework is a part of testing infrastructures and needs to be complemented by other components.
12
+
13
+ ## Components
14
+
15
+ Doc Detective has multiple components to integrate with your workflows as you need it to:
16
+
17
+ - Doc Detective (this repo): A standalone tool that enables testing without a separate Node project.
18
+ - [Doc Detective Core](https://github.com/doc-detective/doc-detective-core): An NPM package that provides the testing functionality.
19
+ - [Doc Detective Docs](https://github.com/doc-detective/doc-detective.github.io): Source files for [doc-detective.com](https://doc-detective.com).
20
+
21
+ ## Install
22
+
23
+ 1. Install prerequisites:
24
+
25
+ - [Node.js](https://nodejs.org/) (tested on v18 and v20)
26
+
27
+ 1. In a terminal, install Doc Detective globally:
28
+
29
+ ```bash
30
+ npm i -g doc-detective
31
+ ```
32
+
33
+ If you don't install Doc Detective globally, you'll be prompted to install the first time you run an `npx` command.
34
+
35
+ ## (Optional) Get sample files
36
+
37
+ To test a few samples, clone the repo and navigate to the `samples` directory:
38
+
39
+ ```bash
40
+ git clone https://github.com/doc-detective/doc-detective.git
41
+ cd doc-detective/samples
42
+ ```
43
+
44
+ ## Run tests
45
+
46
+ To run your tests, use the `runTests` command:
47
+
48
+ ```bash
49
+ npx doc-detective runTests
50
+ ```
51
+
52
+ By default, Doc Detective scans the current directory for valid tests, but you can specify your test file with the `--input` argument. For example, to run tests in a file named `doc-content-inline-tests.md`, run the following command:
53
+
54
+ ```bash
55
+ npx doc-detective runTests --input doc-content-inline-tests.md
56
+ ```
57
+
58
+ To customize your test, file type, and directory options, create a `.doc-detective.json` [config](https://doc-detective.com/reference/schemas/config.html) file. If a `.doc-detective.json` file exists in the directory when you run the comment, Doc Detective loads the config. Otherwise, you can specify a config path with the `--config` argument.
59
+
60
+ ```bash
61
+ npx doc-detective runTests --config .doc-detective.json
62
+ ```
63
+
64
+ **Note**: All paths are relative to the current working directory, regardless where the config file is located.
65
+
66
+ You can override config options with command-line arguments. For example, to run tests in a file named `tests.spec.json`, even if that isn't included in your config, run the following command:
67
+
68
+ ```bash
69
+ npx doc-detective runTests --config .doc-detective.json --input tests.spec.json
70
+ ```
71
+
72
+ ## Check your test coverage
73
+
74
+ You can check the test coverage of your documentation source files with the `runCoverage` command, specifying the source file or directory of source files with the `--input` argument. Doc Detective identifies potential areas of test coverage with file-format-specific regex, and supports CommonMark syntax natively. If you want to test coverage of a file with different syntax, update your the `fileTypes` object of your [config](https://doc-detective.com/reference/schemas/config.html) file accordingly.
75
+
76
+ ```bash
77
+ npx doc-detective runCoverage --config .doc-detective.json --input doc-content.md
78
+ ```
79
+
80
+ ## Concepts
81
+
82
+ - [**Test specification**](https://doc-detective.com/reference/schemas/specification.html): A group of tests to run in one or more contexts. Conceptually parallel to a document.
83
+ - [**Test**](https://doc-detective.com/reference/schemas/test.html): A sequence of steps to perform. Conceptually parallel to a procedure.
84
+ - **Step**: A portion of a test that includes a single action. Conceptually parallel to a step in a procedure.
85
+ - **Action**: The task a performed in a step. Doc Detective supports a variety of actions:
86
+ - [**checkLink**](https://doc-detective.com/reference/schemas/checkLink.html): Check if a URL returns an acceptable status code from a GET request.
87
+ - [**find**](https://doc-detective.com/reference/schemas/find.html): Check if an element exists with the specified selector.
88
+ - [**goTo**](https://doc-detective.com/reference/schemas/goTo.html): Navigate to a specified URL.
89
+ - [**httpRequest**](https://doc-detective.com/reference/schemas/httpRequest.html): Perform a generic HTTP request, for example to an API.
90
+ - [**runShell**](https://doc-detective.com/reference/schemas/runShell.html): Perform a native shell command.
91
+ - [**saveScreenshot**](https://doc-detective.com/reference/schemas/saveScreenshot.html): Take a screenshot in PNG format.
92
+ - [**setVariables**](https://doc-detective.com/reference/schemas/setVariables.html): Load environment variables from a `.env` file.
93
+ - [**startRecording**](https://doc-detective.com/reference/schemas/startRecording.html) and [**stopRecording**](https://doc-detective.com/reference/schemas/stopRecording.html): Capture a video of test execution.
94
+ - [**typeKeys**](https://doc-detective.com/reference/schemas/typeKeys.html): Type keys. To type special keys, begin and end the string with `$` and use the special key’s enum. For example, to type the Escape key, enter `$ESCAPE$`.
95
+ - [**wait**](https://doc-detective.com/reference/schemas/wait.html): Pause before performing the next action.
96
+ - [**Context**](https://doc-detective.com/reference/schemas/context.html): An application and platforms that support the tests.
97
+
98
+ ## Roadmap
99
+
100
+ Future updates may include support for the following items:
101
+
102
+ - Apps: iOS Safari, Android Chrome, native Windows, native macOS, native Linux
103
+ - Platforms: iOS, Android
104
+ - Commands: `suggestTests` stable release
105
+
106
+ ## Develop
107
+
108
+ To develop Doc Detective, clone the repo and install dependencies:
109
+
110
+ ```bash
111
+ git clone https://github.com/doc-detective/doc-detective.git
112
+ cd doc-detective
113
+ npm i
114
+ ```
115
+
116
+ To run commands, use the same `npx` commands as above.
117
+
118
+ Make sure you review the [contributions guide](CONTRIBUTIONS.md) before submitting a pull request.
119
+
120
+ ## Contributions
121
+
122
+ Looking to help out? See our [contributions guide](CONTRIBUTIONS.md) for more info. If you can't contribute code, you can still help by reporting issues, suggesting new features, improving the documentation, or sponsoring the project.
123
+
124
+ ## License
125
+
126
+ This project uses the [MIT license](https://github.com/doc-detective/doc-detective/blob/master/LICENSE).
package/dev/dev.spec.json CHANGED
@@ -1,62 +1,62 @@
1
- {
2
- "id": "Do all the things! - Spec",
3
- "tests": [
4
- {
5
- "id": "Do all the things! - Test",
6
- "description": "This test includes nearly every property across all actions.",
7
- "steps": [
8
- {
9
- "action": "setVariables",
10
- "path": ".env"
11
- },
12
- {
13
- "action": "runShell",
14
- "command": "echo",
15
- "args": ["$USER"]
16
- },
17
- {
18
- "action": "checkLink",
19
- "url": "https://www.duckduckgo.com"
20
- },
21
- {
22
- "action": "httpRequest",
23
- "url": "https://reqres.in/api/users",
24
- "method": "post",
25
- "requestData": {
26
- "name": "morpheus",
27
- "job": "leader"
28
- },
29
- "responseData": {
30
- "name": "morpheus",
31
- "job": "leader"
32
- },
33
- "statusCodes": [200, 201]
34
- },
35
- {
36
- "action": "goTo",
37
- "url": "https://www.google.com"
38
- },
39
- {
40
- "action": "startRecording",
41
- "path": "test.mp4"
42
- },
43
- {
44
- "action": "find",
45
- "selector": "[title=Search]",
46
- "timeout": 10000,
47
- "moveTo": true,
48
- "click": true,
49
- "typeKeys": {
50
- "keys": ["shorthair cat", "$ENTER$"]
51
- }
52
- },
53
- {
54
- "action": "wait"
55
- },
56
- {
57
- "action": "stopRecording"
58
- }
59
- ]
60
- }
61
- ]
62
- }
1
+ {
2
+ "id": "Do all the things! - Spec",
3
+ "tests": [
4
+ {
5
+ "id": "Do all the things! - Test",
6
+ "description": "This test includes nearly every property across all actions.",
7
+ "steps": [
8
+ {
9
+ "action": "setVariables",
10
+ "path": ".env"
11
+ },
12
+ {
13
+ "action": "runShell",
14
+ "command": "echo",
15
+ "args": ["$USER"]
16
+ },
17
+ {
18
+ "action": "checkLink",
19
+ "url": "https://www.duckduckgo.com"
20
+ },
21
+ {
22
+ "action": "httpRequest",
23
+ "url": "https://reqres.in/api/users",
24
+ "method": "post",
25
+ "requestData": {
26
+ "name": "morpheus",
27
+ "job": "leader"
28
+ },
29
+ "responseData": {
30
+ "name": "morpheus",
31
+ "job": "leader"
32
+ },
33
+ "statusCodes": [200, 201]
34
+ },
35
+ {
36
+ "action": "goTo",
37
+ "url": "https://www.google.com"
38
+ },
39
+ {
40
+ "action": "startRecording",
41
+ "path": "test.mp4"
42
+ },
43
+ {
44
+ "action": "find",
45
+ "selector": "[title=Search]",
46
+ "timeout": 10000,
47
+ "moveTo": true,
48
+ "click": true,
49
+ "typeKeys": {
50
+ "keys": ["shorthair cat", "$ENTER$"]
51
+ }
52
+ },
53
+ {
54
+ "action": "wait"
55
+ },
56
+ {
57
+ "action": "stopRecording"
58
+ }
59
+ ]
60
+ }
61
+ ]
62
+ }
package/dev/index.js CHANGED
@@ -1,6 +1,6 @@
1
- const { setArgs, setConfig } = require("../src/utils");
2
-
3
- // Test that arguments are parsed correctly
4
- json = {
5
- }
1
+ const { setArgs, setConfig } = require("../src/utils");
2
+
3
+ // Test that arguments are parsed correctly
4
+ json = {
5
+ }
6
6
  console.log(setConfig(json,setArgs(process.argv)))
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 24.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="_x31_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ width="1200px" height="1200px" viewBox="0 0 1200 1200" enable-background="new 0 0 1200 1200" xml:space="preserve">
5
+ <g>
6
+ <path fill="#4B9A47" d="M1128.306,1200H71.694C32.099,1200,0,1167.901,0,1128.306V71.694C0,32.099,32.099,0,71.694,0h1056.612
7
+ C1167.901,0,1200,32.099,1200,71.694v1056.612C1200,1167.901,1167.901,1200,1128.306,1200z"/>
8
+ <g>
9
+ <path fill="#FFFFFF" d="M251.414,202.411v792.621c0,30.013,24.331,54.344,54.344,54.344h612.917
10
+ c16.716,0,30.268-13.551,30.268-30.268V420.58L677.939,149.577l-376.472,2.454C273.771,152.211,251.414,174.714,251.414,202.411z"
11
+ />
12
+ <path d="M918.676,1078.376H305.758c-45.956,0-83.344-37.388-83.344-83.344V202.411c0-43.487,35.378-79.097,78.865-79.38
13
+ l388.594-2.533l288.069,288.07v610.541C977.942,1051.788,951.355,1078.376,918.676,1078.376z M666.006,178.655l-364.349,2.375
14
+ c-11.713,0.076-21.243,9.668-21.243,21.381v792.621c0,13.975,11.37,25.344,25.344,25.344h612.917c0.698,0,1.267-0.568,1.267-1.268
15
+ V432.592L666.006,178.655z"/>
16
+ </g>
17
+ <rect x="449.529" y="595.822" width="302.675" height="60.076"/>
18
+ <rect x="449.529" y="759.771" width="181.605" height="60.076"/>
19
+ <path d="M864.547,919.645l-33.693,0.599l-22.668-28.276c47.751-52.006,73.916-119.016,73.916-190.056
20
+ c0-75.146-29.264-145.795-82.4-198.932c-53.137-53.137-123.785-82.4-198.932-82.4s-145.795,29.264-198.932,82.4
21
+ c-53.137,53.136-82.4,123.785-82.4,198.932s29.264,145.795,82.4,198.932c53.136,53.137,123.785,82.4,198.932,82.4
22
+ c72.38,0,140.58-27.159,192.986-76.64l22.685,24.676l0.425,32.343c0,2.932,1.17,5.743,3.249,7.81l214.126,212.771l49.529-52.28
23
+ L872.417,922.828C870.324,920.757,867.49,919.611,864.547,919.645z M600.77,920.244c-120.389,0-218.332-97.943-218.332-218.332
24
+ S480.382,483.58,600.77,483.58s218.332,97.943,218.332,218.332S721.159,920.244,600.77,920.244z"/>
25
+ </g>
26
+ </svg>
package/package.json CHANGED
@@ -1,43 +1,44 @@
1
- {
2
- "name": "doc-detective",
3
- "version": "2.13.0-dev.0",
4
- "description": "Treat doc content as testable assertions to validate doc accuracy and product UX.",
5
- "bin": {
6
- "doc-detective": "src/index.js"
7
- },
8
- "main": "./src/index.js",
9
- "scripts": {
10
- "mocha": "mocha",
11
- "test": "mocha test/*.test.js",
12
- "runTests": "node ./src/index.js runTests",
13
- "runCoverage": "node ./src/index.js runCoverage",
14
- "dev": "node ./dev"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "git+https://github.com/hawkeyexl/doc-detective.git"
19
- },
20
- "keywords": [
21
- "documentation",
22
- "unit",
23
- "test",
24
- "doc",
25
- "docs"
26
- ],
27
- "author": "Manny Silva",
28
- "license": "MIT",
29
- "bugs": {
30
- "url": "https://github.com/doc-detective/doc-detective/issues"
31
- },
32
- "homepage": "https://github.com/doc-detective/doc-detective#readme",
33
- "dependencies": {
34
- "doc-detective-common": "^1.17.0-dev.1",
35
- "doc-detective-core": "^2.13.0-dev.0",
36
- "prompt-sync": "^4.2.0",
37
- "yargs": "^17.7.2"
38
- },
39
- "devDependencies": {
40
- "chai": "^4.3.10",
41
- "mocha": "^10.4.0"
42
- }
43
- }
1
+ {
2
+ "name": "doc-detective",
3
+ "version": "2.13.1",
4
+ "description": "Treat doc content as testable assertions to validate doc accuracy and product UX.",
5
+ "bin": {
6
+ "doc-detective": "src/index.js"
7
+ },
8
+ "main": "./src/index.js",
9
+ "scripts": {
10
+ "mocha": "mocha",
11
+ "test": "mocha test/*.test.js",
12
+ "runTests": "node ./src/index.js runTests",
13
+ "runCoverage": "node ./src/index.js runCoverage",
14
+ "dev": "node ./dev"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/hawkeyexl/doc-detective.git"
19
+ },
20
+ "keywords": [
21
+ "documentation",
22
+ "unit",
23
+ "test",
24
+ "doc",
25
+ "docs"
26
+ ],
27
+ "author": "Manny Silva",
28
+ "license": "MIT",
29
+ "bugs": {
30
+ "url": "https://github.com/doc-detective/doc-detective/issues"
31
+ },
32
+ "homepage": "https://github.com/doc-detective/doc-detective#readme",
33
+ "dependencies": {
34
+ "@ffmpeg-installer/ffmpeg": "^1.1.0",
35
+ "doc-detective-common": "^1.17.0",
36
+ "doc-detective-core": "^2.13.0",
37
+ "prompt-sync": "^4.2.0",
38
+ "yargs": "^17.7.2"
39
+ },
40
+ "devDependencies": {
41
+ "chai": "^5.1.1",
42
+ "mocha": "^10.4.0"
43
+ }
44
+ }