@devicecloud.dev/dcd 3.3.0 → 3.3.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.
- package/dist/commands/status.js +7 -3
- package/dist/methods.d.ts +6 -3
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/commands/status.js
CHANGED
|
@@ -26,11 +26,11 @@ class Status extends core_1.Command {
|
|
|
26
26
|
};
|
|
27
27
|
getStatusSymbol(status) {
|
|
28
28
|
switch (status) {
|
|
29
|
-
case '
|
|
29
|
+
case 'PASSED':
|
|
30
30
|
return '✓';
|
|
31
31
|
case 'FAILED':
|
|
32
32
|
return '✗';
|
|
33
|
-
case '
|
|
33
|
+
case 'CANCELLED':
|
|
34
34
|
return '⊘';
|
|
35
35
|
case 'PENDING':
|
|
36
36
|
return '⋯';
|
|
@@ -60,7 +60,11 @@ class Status extends core_1.Command {
|
|
|
60
60
|
else {
|
|
61
61
|
this.log('\nUpload Status:');
|
|
62
62
|
this.log('─'.repeat(50));
|
|
63
|
-
|
|
63
|
+
// Display overall status
|
|
64
|
+
const overallSymbol = this.getStatusSymbol(status.status);
|
|
65
|
+
this.log(`\n${overallSymbol} Overall Status: ${status.status}`);
|
|
66
|
+
this.log('─'.repeat(50));
|
|
67
|
+
status.tests.forEach((item) => {
|
|
64
68
|
const symbol = this.getStatusSymbol(item.status);
|
|
65
69
|
this.log(`\n${symbol} Flow: ${item.name}`);
|
|
66
70
|
this.log(` Status: ${item.status}`);
|
package/dist/methods.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ export declare const getUploadStatus: (apiUrl: string, apiKey: string, options:
|
|
|
29
29
|
uploadId?: string;
|
|
30
30
|
name?: string;
|
|
31
31
|
}) => Promise<{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
status: "PASSED" | "FAILED" | "CANCELLED" | "PENDING";
|
|
33
|
+
tests: Array<{
|
|
34
|
+
name: string;
|
|
35
|
+
status: "PASSED" | "FAILED" | "CANCELLED" | "PENDING";
|
|
36
|
+
}>;
|
|
37
|
+
}>;
|
package/oclif.manifest.json
CHANGED