@testomatio/reporter 2.3.7-beta.10-stack-artifacts → 2.3.7-beta.11-fix-vite
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/lib/bin/cli.js +0 -0
- package/lib/bin/reportXml.js +0 -0
- package/lib/bin/startTest.js +3 -3
- package/lib/bin/uploadArtifacts.js +0 -0
- package/lib/client.js +20 -31
- package/lib/pipe/testomatio.js +2 -2
- package/lib/reporter.d.ts +9 -19
- package/lib/reporter.js +5 -40
- package/lib/template/testomatio.hbs +1366 -1026
- package/lib/utils/utils.js +3 -7
- package/package.json +1 -1
- package/src/bin/startTest.js +5 -5
- package/src/client.js +26 -56
- package/src/pipe/testomatio.js +2 -2
- package/src/reporter.js +4 -7
- package/src/template/testomatio.hbs +1366 -1026
- package/src/utils/utils.js +3 -7
package/src/utils/utils.js
CHANGED
|
@@ -429,14 +429,10 @@ function transformEnvVarToBoolean(value) {
|
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
function truncate(s, size = 255) {
|
|
432
|
-
if (s
|
|
433
|
-
return
|
|
432
|
+
if (s.toString().trim().length < size) {
|
|
433
|
+
return s.toString();
|
|
434
434
|
}
|
|
435
|
-
|
|
436
|
-
if (str.trim().length < size) {
|
|
437
|
-
return str;
|
|
438
|
-
}
|
|
439
|
-
return `${str.substring(0, size)}...`;
|
|
435
|
+
return `${s.toString().substring(0, size)}...`;
|
|
440
436
|
}
|
|
441
437
|
|
|
442
438
|
export {
|