@testomatio/reporter 2.3.7-beta.11-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.
@@ -429,14 +429,10 @@ function transformEnvVarToBoolean(value) {
429
429
  }
430
430
 
431
431
  function truncate(s, size = 255) {
432
- if (s === undefined || s === null) {
433
- return '';
432
+ if (s.toString().trim().length < size) {
433
+ return s.toString();
434
434
  }
435
- const str = s.toString();
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 {