doc-detective 2.9.0-dev.1 → 2.9.0-dev.2
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/package.json +2 -1
- package/src/index.js +2 -3
- package/samples/reference.png +0 -0
- package/samples/screenshot.png +0 -0
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doc-detective",
|
|
3
|
-
"version": "2.9.0-dev.
|
|
3
|
+
"version": "2.9.0-dev.2",
|
|
4
4
|
"description": "Unit test documentation (and record videos of those tests).",
|
|
5
5
|
"bin": {
|
|
6
6
|
"doc-detective": "node ./src/index.js"
|
|
7
7
|
},
|
|
8
|
+
"main": "./src/index.js",
|
|
8
9
|
"scripts": {
|
|
9
10
|
"mocha": "mocha",
|
|
10
11
|
"postinstall": "node ./node_modules/doc-detective-core/scripts/postinstall.js",
|
package/src/index.js
CHANGED
|
@@ -10,7 +10,6 @@ main(argv);
|
|
|
10
10
|
// Run tests
|
|
11
11
|
async function main(argv) {
|
|
12
12
|
// Find index of `doc-detective` or `run` in argv
|
|
13
|
-
console.log(argv);
|
|
14
13
|
let index = argv.indexOf("doc-detective");
|
|
15
14
|
if (index === -1) {
|
|
16
15
|
index = argv.findIndex((arg) => arg.endsWith("index.js"));
|
|
@@ -25,11 +24,11 @@ async function main(argv) {
|
|
|
25
24
|
let outputDir;
|
|
26
25
|
let outputReportType;
|
|
27
26
|
if (command === "runCoverage") {
|
|
28
|
-
outputDir = config
|
|
27
|
+
outputDir = config?.runCoverage?.output || config.output;
|
|
29
28
|
outputReportType = "coverageResults";
|
|
30
29
|
results = await runCoverage(config);
|
|
31
30
|
} else if (command === "runTests") {
|
|
32
|
-
outputDir = config
|
|
31
|
+
outputDir = config?.runTests?.output || config.output;
|
|
33
32
|
outputReportType = "testResults";
|
|
34
33
|
results = await runTests(config);
|
|
35
34
|
} else {
|
package/samples/reference.png
DELETED
|
Binary file
|
package/samples/screenshot.png
DELETED
|
Binary file
|