@joystick.js/cli-canary 0.0.0-canary.126 → 0.0.0-canary.127
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/dist/lib/dev/runTests.js
CHANGED
|
@@ -2,7 +2,6 @@ import child_process from "child_process";
|
|
|
2
2
|
import CLILog from "../CLILog.js";
|
|
3
3
|
const handleAvaSTDERR = (stderr = "", options = {}) => {
|
|
4
4
|
try {
|
|
5
|
-
console.log("STDERR", stderr);
|
|
6
5
|
if (stderr?.includes("Using configuration")) {
|
|
7
6
|
return null;
|
|
8
7
|
}
|
|
@@ -12,13 +11,13 @@ const handleAvaSTDERR = (stderr = "", options = {}) => {
|
|
|
12
11
|
docs: "https://cheatcode.co/docs/joystick/test/setup"
|
|
13
12
|
});
|
|
14
13
|
}
|
|
14
|
+
console.log(stderr);
|
|
15
15
|
} catch (exception) {
|
|
16
16
|
throw new Error(`[runTests.handleAvaSTDERR] ${exception.message}`);
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
const handleAvaSTDOUT = (stdout = "", options = {}) => {
|
|
20
20
|
try {
|
|
21
|
-
console.log(stdout);
|
|
22
21
|
if (stdout?.includes("Using configuration")) {
|
|
23
22
|
return null;
|
|
24
23
|
}
|
|
@@ -30,6 +29,7 @@ const handleAvaSTDOUT = (stdout = "", options = {}) => {
|
|
|
30
29
|
options.cleanupProcess.send(JSON.stringify({ processIds: options?.processIds }));
|
|
31
30
|
return process.exit(0);
|
|
32
31
|
}
|
|
32
|
+
console.log(stdout);
|
|
33
33
|
} catch (exception) {
|
|
34
34
|
throw new Error(`[runTests.handleAvaSTDOUT] ${exception.message}`);
|
|
35
35
|
}
|
package/package.json
CHANGED
package/src/lib/dev/runTests.js
CHANGED
|
@@ -3,8 +3,6 @@ import CLILog from "../CLILog.js";
|
|
|
3
3
|
|
|
4
4
|
const handleAvaSTDERR = (stderr = '', options = {}) => {
|
|
5
5
|
try {
|
|
6
|
-
console.log('STDERR', stderr);
|
|
7
|
-
|
|
8
6
|
// NOTE: Squash output about using a configuration file (we always do in the framework).
|
|
9
7
|
if (stderr?.includes('Using configuration')) {
|
|
10
8
|
return null;
|
|
@@ -16,6 +14,8 @@ const handleAvaSTDERR = (stderr = '', options = {}) => {
|
|
|
16
14
|
docs: 'https://cheatcode.co/docs/joystick/test/setup',
|
|
17
15
|
});
|
|
18
16
|
}
|
|
17
|
+
|
|
18
|
+
console.log(stderr);
|
|
19
19
|
} catch (exception) {
|
|
20
20
|
throw new Error(`[runTests.handleAvaSTDERR] ${exception.message}`);
|
|
21
21
|
}
|
|
@@ -23,7 +23,6 @@ const handleAvaSTDERR = (stderr = '', options = {}) => {
|
|
|
23
23
|
|
|
24
24
|
const handleAvaSTDOUT = (stdout = '', options = {}) => {
|
|
25
25
|
try {
|
|
26
|
-
console.log(stdout);
|
|
27
26
|
// NOTE: Squash output about using a configuration file (we always do in the framework).
|
|
28
27
|
if (stdout?.includes('Using configuration')) {
|
|
29
28
|
return null;
|
|
@@ -41,6 +40,8 @@ const handleAvaSTDOUT = (stdout = '', options = {}) => {
|
|
|
41
40
|
|
|
42
41
|
return process.exit(0);
|
|
43
42
|
}
|
|
43
|
+
|
|
44
|
+
console.log(stdout);
|
|
44
45
|
} catch (exception) {
|
|
45
46
|
throw new Error(`[runTests.handleAvaSTDOUT] ${exception.message}`);
|
|
46
47
|
}
|