@testomatio/reporter 2.6.0 → 2.6.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.
Files changed (41) hide show
  1. package/README.md +10 -10
  2. package/lib/adapter/playwright.d.ts +2 -12
  3. package/lib/adapter/playwright.js +15 -72
  4. package/lib/adapter/utils/playwright.d.ts +25 -0
  5. package/lib/adapter/utils/playwright.js +123 -0
  6. package/lib/adapter/vitest.js +2 -1
  7. package/lib/bin/cli.js +1 -1
  8. package/lib/data-storage.d.ts +1 -1
  9. package/lib/data-storage.js +1 -0
  10. package/lib/pipe/debug.js +1 -1
  11. package/lib/pipe/html.d.ts +2 -3
  12. package/lib/pipe/html.js +745 -37
  13. package/lib/pipe/testomatio.js +13 -2
  14. package/lib/reporter-functions.d.ts +36 -11
  15. package/lib/reporter-functions.js +67 -25
  16. package/lib/reporter.d.ts +42 -86
  17. package/lib/services/artifacts.d.ts +1 -1
  18. package/lib/services/key-values.d.ts +1 -1
  19. package/lib/services/links.d.ts +1 -1
  20. package/lib/services/logger.d.ts +1 -1
  21. package/lib/template/testomatio-old.hbs +1421 -0
  22. package/lib/template/testomatio.hbs +3200 -1157
  23. package/lib/utils/log-formatter.d.ts +2 -1
  24. package/lib/utils/log-formatter.js +8 -4
  25. package/package.json +5 -2
  26. package/src/adapter/playwright.js +15 -79
  27. package/src/adapter/utils/playwright.js +121 -0
  28. package/src/adapter/vitest.js +2 -1
  29. package/src/bin/cli.js +1 -1
  30. package/src/data-storage.js +1 -0
  31. package/src/pipe/debug.js +1 -1
  32. package/src/pipe/html.js +844 -38
  33. package/src/pipe/testomatio.js +13 -2
  34. package/src/reporter-functions.js +68 -28
  35. package/src/template/testomatio-old.hbs +1421 -0
  36. package/src/template/testomatio.hbs +3200 -1157
  37. package/src/utils/log-formatter.js +9 -4
  38. package/types/types.d.ts +29 -5
  39. package/lib/services/labels.d.ts +0 -0
  40. package/lib/services/labels.js +0 -0
  41. package/src/services/labels.js +0 -1
@@ -23,7 +23,7 @@ if (process.env.TESTOMATIO_RUN)
23
23
  class TestomatioPipe {
24
24
  constructor(params, store) {
25
25
  this.batch = {
26
- isEnabled: params?.isBatchEnabled ?? !process.env.TESTOMATIO_DISABLE_BATCH_UPLOAD ?? true,
26
+ isEnabled: params?.isBatchEnabled ?? !process.env.TESTOMATIO_DISABLE_BATCH_UPLOAD,
27
27
  intervalFunction: null, // will be created in createRun by setInterval function
28
28
  intervalTime: 5000, // how often tests are sent
29
29
  tests: [], // array of tests in batch
@@ -234,6 +234,15 @@ class TestomatioPipe {
234
234
  });
235
235
  if (resp.data.artifacts)
236
236
  (0, pipe_utils_js_1.setS3Credentials)(resp.data.artifacts);
237
+ if (resp.data.url) {
238
+ const respUrl = new URL(resp.data.url);
239
+ this.runUrl = `${this.url}${respUrl.pathname}`;
240
+ this.runPublicUrl = resp.data.public_url;
241
+ this.store.runUrl = this.runUrl;
242
+ this.store.runPublicUrl = this.runPublicUrl;
243
+ console.log(constants_js_1.APP_PREFIX, '📊 Using existing run. Report ID:', this.runId);
244
+ console.log(constants_js_1.APP_PREFIX, '📊 Report URL:', picocolors_1.default.magenta(this.runUrl));
245
+ }
237
246
  return;
238
247
  }
239
248
  debug('Creating run...');
@@ -514,7 +523,9 @@ function printCreateIssue() {
514
523
  * @returns {string}
515
524
  */
516
525
  function hideTestomatioToken(data) {
517
- return data.replace(/"api_key": "[^"]+"/g, '"api_key": "<hidden>"').replace(/"(tstmt_[^"]+)"/g, 'tstmt_***');
526
+ return (typeof data === 'string' ? data : '')
527
+ .replace(/"api_key"\s*:\s*"[^"]+"/g, '"api_key": "<hidden>"')
528
+ .replace(/"(tstmt_[^"]+)"/g, '"tstmt_***"');
518
529
  }
519
530
  /**
520
531
  * Stringifies provided data
@@ -39,29 +39,54 @@ declare function addStep(message: string, logs?: {
39
39
  }): void;
40
40
  /**
41
41
  * Add key-value pair(s) to the test report
42
- * @param {{[key: string]: string} | string} keyValue - object { key: value } (multiple props allowed) or key (string)
43
- * @param {string|null} [value=null] - optional value when keyValue is a string
42
+ * @param {{[key: string]: string} | string} keyValue - object { key: value } (multiple props allowed) OR key (string)
43
+ * @param {string|undefined} [value=undefined] - optional value when keyValue is a string
44
44
  * @returns {void}
45
+ *
46
+ * @example
47
+ * meta('key', 'value');
48
+ * meta({ key: 'value' });
49
+ * meta({ key1: 'value1', key2: 'value2' });
45
50
  */
46
51
  declare function setKeyValue(keyValue: {
47
52
  [key: string]: string;
48
- } | string, value?: string | null): void;
53
+ } | string, value?: string | undefined): void;
49
54
  /**
50
- * Add a single label to the test report
51
- * @param {string} key - label key (e.g. 'severity', 'feature', or just 'smoke' for labels without values)
52
- * @param {string|null} [value=null] - optional label value (e.g. 'high', 'login')
55
+ * Adds label(s) to the test
56
+ * @param {string | {
57
+ * [key: string]: string}
58
+ * } key - just label OR custom field name OR object with custom field name and value
59
+ * @param {string | null} [value=null] - optional label value (of custom field value)
60
+ * (used when key is a string)
53
61
  * @returns {void}
62
+ *
63
+ * @example
64
+ * label('high');
65
+ * label('priority', 'high');
66
+ * label({priority: 'high'});
54
67
  */
55
- declare function setLabel(key: string, value?: string | null): void;
68
+ declare function setLabel(key: string | {
69
+ [key: string]: string;
70
+ }, value?: string | null): void;
56
71
  /**
57
72
  * Add link(s) to the test report
58
- * @param {...string} testIds - test IDs to link
73
+ * @param {...string | string[]} testIds - test IDs to link
59
74
  * @returns {void}
75
+ *
76
+ * @example
77
+ * linkTest('T11111111', 'T22222222')
78
+ * or
79
+ * linkTest(['T11111111', 'T22222222'])
60
80
  */
61
- declare function linkTest(...testIds: string[]): void;
81
+ declare function linkTest(...testIds: (string | string[])[]): void;
62
82
  /**
63
83
  * Add JIRA issue link(s) to the test report
64
- * @param {...string} jiraIds - JIRA issue IDs to link
84
+ * @param {...(string | string[])} jiraIds - JIRA issue IDs to link
65
85
  * @returns {void}
86
+ *
87
+ * @example
88
+ * linkJira('TICKET-1', 'TICKET-2')
89
+ * or
90
+ * linkJira(['TICKET-1', 'TICKET-2'])
66
91
  */
67
- declare function linkJira(...jiraIds: string[]): void;
92
+ declare function linkJira(...jiraIds: (string | string[])[]): void;
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const playwright_js_1 = require("./adapter/utils/playwright.js");
3
7
  const helpers_js_1 = require("./helpers.js");
4
8
  const index_js_1 = require("./services/index.js");
9
+ const picocolors_1 = __importDefault(require("picocolors"));
5
10
  /**
6
11
  * Stores path to file as artifact and uploads it to the S3 storage
7
12
  * @param {string | {path: string, type: string, name: string}} data - path to file or object with path, type and name
@@ -9,7 +14,9 @@ const index_js_1 = require("./services/index.js");
9
14
  * @returns {void}
10
15
  */
11
16
  function saveArtifact(data, context = null) {
12
- showPlaywrightWarning('artifact', 'Playwright supports artifacts out of the box.');
17
+ if (helpers_js_1.isPlaywright)
18
+ console.warn(`[TESTOMATIO] 'artifact' function is not supported for Playwright
19
+ Playwright supports artifacts out of the box.`);
13
20
  if (!data)
14
21
  return;
15
22
  index_js_1.services.artifacts.put(data, context);
@@ -42,62 +49,97 @@ function addStep(message, logs) {
42
49
  }
43
50
  /**
44
51
  * Add key-value pair(s) to the test report
45
- * @param {{[key: string]: string} | string} keyValue - object { key: value } (multiple props allowed) or key (string)
46
- * @param {string|null} [value=null] - optional value when keyValue is a string
52
+ * @param {{[key: string]: string} | string} keyValue - object { key: value } (multiple props allowed) OR key (string)
53
+ * @param {string|undefined} [value=undefined] - optional value when keyValue is a string
47
54
  * @returns {void}
55
+ *
56
+ * @example
57
+ * meta('key', 'value');
58
+ * meta({ key: 'value' });
59
+ * meta({ key1: 'value1', key2: 'value2' });
48
60
  */
49
- function setKeyValue(keyValue, value = null) {
50
- showPlaywrightWarning('meta', 'Use test annotations instead.');
61
+ function setKeyValue(keyValue, value = undefined) {
62
+ // in this case keyValue acts as key (value passed as second argument)
51
63
  if (typeof keyValue === 'string') {
52
- keyValue = { [keyValue]: value };
64
+ const key = keyValue;
65
+ keyValue = { [key]: value };
66
+ }
67
+ if (helpers_js_1.isPlaywright) {
68
+ console.log(`${playwright_js_1.playwrightLogsMarkers.meta} ${JSON.stringify(keyValue)}`);
69
+ return;
53
70
  }
71
+ // in this case keyValue is expected to be an object
54
72
  index_js_1.services.keyValues.put(keyValue);
55
73
  }
56
74
  /**
57
- * Add a single label to the test report
58
- * @param {string} key - label key (e.g. 'severity', 'feature', or just 'smoke' for labels without values)
59
- * @param {string|null} [value=null] - optional label value (e.g. 'high', 'login')
75
+ * Adds label(s) to the test
76
+ * @param {string | {
77
+ * [key: string]: string}
78
+ * } key - just label OR custom field name OR object with custom field name and value
79
+ * @param {string | null} [value=null] - optional label value (of custom field value)
80
+ * (used when key is a string)
60
81
  * @returns {void}
82
+ *
83
+ * @example
84
+ * label('high');
85
+ * label('priority', 'high');
86
+ * label({priority: 'high'});
61
87
  */
62
88
  function setLabel(key, value = null) {
63
- showPlaywrightWarning('label', 'Use test tag instead.');
64
- if (Array.isArray(value)) {
65
- return value.forEach(label => setLabel(key, label));
89
+ let labelsArr = [];
90
+ // process label('priority', 'high') and label('high'
91
+ if (typeof key === 'string') {
92
+ labelsArr = [value ? `${key}:${value}` : key];
93
+ // process label({priority: 'high'}), label({priority: 'high', scope: 'smoke'})
94
+ }
95
+ else if (key !== null && typeof key === 'object') {
96
+ labelsArr = Object.entries(key).map(([key, value]) => `${key}:${value}`);
66
97
  }
67
- const labelObject = value !== null && value !== undefined && value !== '' ? { label: `${key}:${value}` } : { label: key };
68
- index_js_1.services.links.put([labelObject]);
98
+ const labels = labelsArr.map(l => ({ label: l }));
99
+ if (helpers_js_1.isPlaywright) {
100
+ console.log(`${playwright_js_1.playwrightLogsMarkers.label} ${JSON.stringify(labels)}`);
101
+ return;
102
+ }
103
+ index_js_1.services.links.put(labels);
69
104
  }
70
105
  /**
71
106
  * Add link(s) to the test report
72
- * @param {...string} testIds - test IDs to link
107
+ * @param {...string | string[]} testIds - test IDs to link
73
108
  * @returns {void}
109
+ *
110
+ * @example
111
+ * linkTest('T11111111', 'T22222222')
112
+ * or
113
+ * linkTest(['T11111111', 'T22222222'])
74
114
  */
75
115
  function linkTest(...testIds) {
116
+ const testIdsArr = testIds.flat();
117
+ const links = testIdsArr.map(testId => ({ test: testId }));
76
118
  if (helpers_js_1.isPlaywright) {
77
- console.log(`[TESTOMATIO-LINK-TESTS] ${JSON.stringify(testIds)}`);
119
+ console.log(`${playwright_js_1.playwrightLogsMarkers.linkTest} ${JSON.stringify(links)}`);
78
120
  return;
79
121
  }
80
- const links = testIds.map(testId => ({ test: testId }));
81
122
  index_js_1.services.links.put(links);
82
123
  }
83
124
  /**
84
125
  * Add JIRA issue link(s) to the test report
85
- * @param {...string} jiraIds - JIRA issue IDs to link
126
+ * @param {...(string | string[])} jiraIds - JIRA issue IDs to link
86
127
  * @returns {void}
128
+ *
129
+ * @example
130
+ * linkJira('TICKET-1', 'TICKET-2')
131
+ * or
132
+ * linkJira(['TICKET-1', 'TICKET-2'])
87
133
  */
88
134
  function linkJira(...jiraIds) {
135
+ const jiraIdsArr = jiraIds.flat();
136
+ const links = jiraIdsArr.map(jiraId => ({ jira: jiraId }));
89
137
  if (helpers_js_1.isPlaywright) {
90
- console.log(`[TESTOMATIO-LINK-JIRA] ${JSON.stringify(jiraIds)}`);
138
+ console.log(`${playwright_js_1.playwrightLogsMarkers.linkJira} ${JSON.stringify(links)}`);
91
139
  return;
92
140
  }
93
- const links = jiraIds.map(jiraId => ({ jira: jiraId }));
94
141
  index_js_1.services.links.put(links);
95
142
  }
96
- function showPlaywrightWarning(functionName, recommendation) {
97
- if (helpers_js_1.isPlaywright) {
98
- console.warn(`[TESTOMATIO] '${functionName}' function is not supported for Playwright. ${recommendation}`);
99
- }
100
- }
101
143
  module.exports = {
102
144
  artifact: saveArtifact,
103
145
  log: logMessage,
package/lib/reporter.d.ts CHANGED
@@ -12,59 +12,43 @@ export const artifact: (data: string | {
12
12
  }, context?: any) => void;
13
13
  export const log: (...args: any[]) => void;
14
14
  export const logger: {
15
- "__#14@#originalUserLogger": {
15
+ "__#private@#originalUserLogger": {
16
16
  assert(condition?: boolean, ...data: any[]): void;
17
- assert(value: any, message?: string, ...optionalParams: any[]): void;
18
17
  clear(): void;
19
- clear(): void;
20
- count(label?: string): void;
21
18
  count(label?: string): void;
22
19
  countReset(label?: string): void;
23
- countReset(label?: string): void;
24
20
  debug(...data: any[]): void;
25
- debug(message?: any, ...optionalParams: any[]): void;
26
21
  dir(item?: any, options?: any): void;
27
- dir(obj: any, options?: import("util").InspectOptions): void;
28
- dirxml(...data: any[]): void;
29
22
  dirxml(...data: any[]): void;
30
23
  error(...data: any[]): void;
31
- error(message?: any, ...optionalParams: any[]): void;
32
24
  group(...data: any[]): void;
33
- group(...label: any[]): void;
34
25
  groupCollapsed(...data: any[]): void;
35
- groupCollapsed(...label: any[]): void;
36
- groupEnd(): void;
37
26
  groupEnd(): void;
38
27
  info(...data: any[]): void;
39
- info(message?: any, ...optionalParams: any[]): void;
40
28
  log(...data: any[]): void;
41
- log(message?: any, ...optionalParams: any[]): void;
42
29
  table(tabularData?: any, properties?: string[]): void;
43
- table(tabularData: any, properties?: readonly string[]): void;
44
- time(label?: string): void;
45
30
  time(label?: string): void;
46
31
  timeEnd(label?: string): void;
47
- timeEnd(label?: string): void;
48
- timeLog(label?: string, ...data: any[]): void;
49
32
  timeLog(label?: string, ...data: any[]): void;
50
33
  timeStamp(label?: string): void;
51
- timeStamp(label?: string): void;
52
34
  trace(...data: any[]): void;
53
- trace(message?: any, ...optionalParams: any[]): void;
54
35
  warn(...data: any[]): void;
55
- warn(message?: any, ...optionalParams: any[]): void;
56
- Console: console.ConsoleConstructor;
36
+ Console: {
37
+ prototype: import("node:console").Console;
38
+ new (stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): import("node:console").Console;
39
+ new (options: import("node:console").ConsoleOptions): import("node:console").Console;
40
+ };
57
41
  profile(label?: string): void;
58
42
  profileEnd(label?: string): void;
59
43
  };
60
- "__#14@#userLoggerWithOverridenMethods": any;
44
+ "__#private@#userLoggerWithOverridenMethods": any;
61
45
  logLevel: string;
62
46
  step(strings: any, ...values: any[]): void;
63
47
  getLogs(context: string): string[];
64
- "__#14@#stringifyLogs"(...args: any[]): string;
65
- "__#14@#formatMessage"(strings: any, ...args: any[]): string;
48
+ "__#private@#stringifyLogs"(...args: any[]): string;
49
+ "__#private@#formatMessage"(strings: any, ...args: any[]): string;
66
50
  _templateLiteralLog(strings: any, ...args: any[]): void;
67
- "__#14@#logWrapper"(argsArray: any, level: any): void;
51
+ "__#private@#logWrapper"(argsArray: any, level: any): void;
68
52
  assert(...args: any[]): void;
69
53
  debug(...args: any[]): void;
70
54
  error(...args: any[]): void;
@@ -82,68 +66,54 @@ export const logger: {
82
66
  };
83
67
  export const meta: (keyValue: {
84
68
  [key: string]: string;
85
- } | string, value?: string | null) => void;
69
+ } | string, value?: string | undefined) => void;
86
70
  export const step: (message: string, logs?: {
87
71
  [key: string]: any;
88
72
  }) => void;
89
- export const label: (key: string, value?: string | null) => void;
90
- export const linkTest: (...testIds: string[]) => void;
91
- export const linkJira: (...jiraIds: string[]) => void;
73
+ export const label: (key: string | {
74
+ [key: string]: string;
75
+ }, value?: string | null) => void;
76
+ export const linkTest: (...testIds: (string | string[])[]) => void;
77
+ export const linkJira: (...jiraIds: (string | string[])[]) => void;
92
78
  declare namespace _default {
93
79
  export let testomatioLogger: {
94
- "__#14@#originalUserLogger": {
80
+ "__#private@#originalUserLogger": {
95
81
  assert(condition?: boolean, ...data: any[]): void;
96
- assert(value: any, message?: string, ...optionalParams: any[]): void;
97
- clear(): void;
98
82
  clear(): void;
99
83
  count(label?: string): void;
100
- count(label?: string): void;
101
- countReset(label?: string): void;
102
84
  countReset(label?: string): void;
103
85
  debug(...data: any[]): void;
104
- debug(message?: any, ...optionalParams: any[]): void;
105
86
  dir(item?: any, options?: any): void;
106
- dir(obj: any, options?: import("util").InspectOptions): void;
107
- dirxml(...data: any[]): void;
108
87
  dirxml(...data: any[]): void;
109
88
  error(...data: any[]): void;
110
- error(message?: any, ...optionalParams: any[]): void;
111
89
  group(...data: any[]): void;
112
- group(...label: any[]): void;
113
90
  groupCollapsed(...data: any[]): void;
114
- groupCollapsed(...label: any[]): void;
115
- groupEnd(): void;
116
91
  groupEnd(): void;
117
92
  info(...data: any[]): void;
118
- info(message?: any, ...optionalParams: any[]): void;
119
93
  log(...data: any[]): void;
120
- log(message?: any, ...optionalParams: any[]): void;
121
94
  table(tabularData?: any, properties?: string[]): void;
122
- table(tabularData: any, properties?: readonly string[]): void;
123
- time(label?: string): void;
124
95
  time(label?: string): void;
125
96
  timeEnd(label?: string): void;
126
- timeEnd(label?: string): void;
127
- timeLog(label?: string, ...data: any[]): void;
128
97
  timeLog(label?: string, ...data: any[]): void;
129
98
  timeStamp(label?: string): void;
130
- timeStamp(label?: string): void;
131
99
  trace(...data: any[]): void;
132
- trace(message?: any, ...optionalParams: any[]): void;
133
100
  warn(...data: any[]): void;
134
- warn(message?: any, ...optionalParams: any[]): void;
135
- Console: console.ConsoleConstructor;
101
+ Console: {
102
+ prototype: import("node:console").Console;
103
+ new (stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): import("node:console").Console;
104
+ new (options: import("node:console").ConsoleOptions): import("node:console").Console;
105
+ };
136
106
  profile(label?: string): void;
137
107
  profileEnd(label?: string): void;
138
108
  };
139
- "__#14@#userLoggerWithOverridenMethods": any;
109
+ "__#private@#userLoggerWithOverridenMethods": any;
140
110
  logLevel: string;
141
111
  step(strings: any, ...values: any[]): void;
142
112
  getLogs(context: string): string[];
143
- "__#14@#stringifyLogs"(...args: any[]): string;
144
- "__#14@#formatMessage"(strings: any, ...args: any[]): string;
113
+ "__#private@#stringifyLogs"(...args: any[]): string;
114
+ "__#private@#formatMessage"(strings: any, ...args: any[]): string;
145
115
  _templateLiteralLog(strings: any, ...args: any[]): void;
146
- "__#14@#logWrapper"(argsArray: any, level: any): void;
116
+ "__#private@#logWrapper"(argsArray: any, level: any): void;
147
117
  assert(...args: any[]): void;
148
118
  debug(...args: any[]): void;
149
119
  error(...args: any[]): void;
@@ -166,59 +136,43 @@ declare namespace _default {
166
136
  }, context?: any) => void;
167
137
  export let log: (...args: any[]) => void;
168
138
  export let logger: {
169
- "__#14@#originalUserLogger": {
139
+ "__#private@#originalUserLogger": {
170
140
  assert(condition?: boolean, ...data: any[]): void;
171
- assert(value: any, message?: string, ...optionalParams: any[]): void;
172
- clear(): void;
173
141
  clear(): void;
174
142
  count(label?: string): void;
175
- count(label?: string): void;
176
- countReset(label?: string): void;
177
143
  countReset(label?: string): void;
178
144
  debug(...data: any[]): void;
179
- debug(message?: any, ...optionalParams: any[]): void;
180
145
  dir(item?: any, options?: any): void;
181
- dir(obj: any, options?: import("util").InspectOptions): void;
182
- dirxml(...data: any[]): void;
183
146
  dirxml(...data: any[]): void;
184
147
  error(...data: any[]): void;
185
- error(message?: any, ...optionalParams: any[]): void;
186
148
  group(...data: any[]): void;
187
- group(...label: any[]): void;
188
149
  groupCollapsed(...data: any[]): void;
189
- groupCollapsed(...label: any[]): void;
190
- groupEnd(): void;
191
150
  groupEnd(): void;
192
151
  info(...data: any[]): void;
193
- info(message?: any, ...optionalParams: any[]): void;
194
152
  log(...data: any[]): void;
195
- log(message?: any, ...optionalParams: any[]): void;
196
153
  table(tabularData?: any, properties?: string[]): void;
197
- table(tabularData: any, properties?: readonly string[]): void;
198
154
  time(label?: string): void;
199
- time(label?: string): void;
200
- timeEnd(label?: string): void;
201
155
  timeEnd(label?: string): void;
202
156
  timeLog(label?: string, ...data: any[]): void;
203
- timeLog(label?: string, ...data: any[]): void;
204
- timeStamp(label?: string): void;
205
157
  timeStamp(label?: string): void;
206
158
  trace(...data: any[]): void;
207
- trace(message?: any, ...optionalParams: any[]): void;
208
159
  warn(...data: any[]): void;
209
- warn(message?: any, ...optionalParams: any[]): void;
210
- Console: console.ConsoleConstructor;
160
+ Console: {
161
+ prototype: import("node:console").Console;
162
+ new (stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): import("node:console").Console;
163
+ new (options: import("node:console").ConsoleOptions): import("node:console").Console;
164
+ };
211
165
  profile(label?: string): void;
212
166
  profileEnd(label?: string): void;
213
167
  };
214
- "__#14@#userLoggerWithOverridenMethods": any;
168
+ "__#private@#userLoggerWithOverridenMethods": any;
215
169
  logLevel: string;
216
170
  step(strings: any, ...values: any[]): void;
217
171
  getLogs(context: string): string[];
218
- "__#14@#stringifyLogs"(...args: any[]): string;
219
- "__#14@#formatMessage"(strings: any, ...args: any[]): string;
172
+ "__#private@#stringifyLogs"(...args: any[]): string;
173
+ "__#private@#formatMessage"(strings: any, ...args: any[]): string;
220
174
  _templateLiteralLog(strings: any, ...args: any[]): void;
221
- "__#14@#logWrapper"(argsArray: any, level: any): void;
175
+ "__#private@#logWrapper"(argsArray: any, level: any): void;
222
176
  assert(...args: any[]): void;
223
177
  debug(...args: any[]): void;
224
178
  error(...args: any[]): void;
@@ -236,13 +190,15 @@ declare namespace _default {
236
190
  };
237
191
  export let meta: (keyValue: {
238
192
  [key: string]: string;
239
- } | string, value?: string | null) => void;
193
+ } | string, value?: string | undefined) => void;
240
194
  export let step: (message: string, logs?: {
241
195
  [key: string]: any;
242
196
  }) => void;
243
- export let label: (key: string, value?: string | null) => void;
244
- export let linkTest: (...testIds: string[]) => void;
245
- export let linkJira: (...jiraIds: string[]) => void;
197
+ export let label: (key: string | {
198
+ [key: string]: string;
199
+ }, value?: string | null) => void;
200
+ export let linkTest: (...testIds: (string | string[])[]) => void;
201
+ export let linkJira: (...jiraIds: (string | string[])[]) => void;
246
202
  export { Client as TestomatioClient };
247
203
  export { STATUS };
248
204
  }
@@ -3,7 +3,7 @@ export const artifactStorage: ArtifactStorage;
3
3
  * Artifact storage is supposed to store file paths
4
4
  */
5
5
  declare class ArtifactStorage {
6
- static "__#15@#instance": any;
6
+ static "__#private@#instance": any;
7
7
  /**
8
8
  * Singleton
9
9
  * @returns {ArtifactStorage}
@@ -1,6 +1,6 @@
1
1
  export const keyValueStorage: KeyValueStorage;
2
2
  declare class KeyValueStorage {
3
- static "__#16@#instance": any;
3
+ static "__#private@#instance": any;
4
4
  /**
5
5
  *
6
6
  * @returns {KeyValueStorage}
@@ -1,6 +1,6 @@
1
1
  export const linkStorage: LinkStorage;
2
2
  declare class LinkStorage {
3
- static "__#17@#instance": any;
3
+ static "__#private@#instance": any;
4
4
  /**
5
5
  *
6
6
  * @returns {LinkStorage}
@@ -5,7 +5,7 @@ export const logger: Logger;
5
5
  * Supports different syntaxes to satisfy any user preferences.
6
6
  */
7
7
  declare class Logger {
8
- static "__#14@#instance": any;
8
+ static "__#private@#instance": any;
9
9
  /**
10
10
  *
11
11
  * @returns {Logger}