monocart-reporter 1.7.6 → 1.7.8

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/visitor.js CHANGED
@@ -523,6 +523,9 @@ class Visitor {
523
523
  this.reportHandler(item, 'coverage', title);
524
524
  this.reportHandler(item, 'network', title);
525
525
 
526
+ // content: text
527
+ this.contentHandler(item);
528
+
526
529
  const o = this.options;
527
530
  // store relative path first
528
531
  item.path = Util.relativePath(item.path, o.outputDir);
@@ -578,6 +581,12 @@ class Visitor {
578
581
 
579
582
  }
580
583
 
584
+ contentHandler(item) {
585
+ if (item.contentType && item.contentType.startsWith('text')) {
586
+ item.content = Util.readFileSync(item.path);
587
+ }
588
+ }
589
+
581
590
  saveAttachmentHandler(item, i, caseId) {
582
591
 
583
592
  const attachmentsPath = path.resolve(this.options.outputDir, caseId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monocart-reporter",
3
- "version": "1.7.6",
3
+ "version": "1.7.8",
4
4
  "description": "A playwright test reporter. Shows suites/cases/steps with tree style, markdown annotations, custom columns/formatters/data collection visitors, console logs, style tags, send email.",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -48,18 +48,18 @@
48
48
  "koa": "^2.14.2",
49
49
  "koa-static-resolver": "^1.0.4",
50
50
  "lz-utils": "^2.0.1",
51
- "nodemailer": "^6.9.4",
51
+ "nodemailer": "^6.9.5",
52
52
  "open": "^9.1.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@playwright/test": "^1.36.2",
56
- "axios": "^1.4.0",
55
+ "@playwright/test": "^1.38.0",
56
+ "axios": "^1.5.0",
57
57
  "dotenv": "^16.3.1",
58
- "eslint": "^8.46.0",
58
+ "eslint": "^8.49.0",
59
59
  "eslint-config-plus": "^1.0.6",
60
60
  "eslint-plugin-html": "^7.1.0",
61
- "eslint-plugin-vue": "^9.16.1",
62
- "stylelint": "^15.10.2",
61
+ "eslint-plugin-vue": "^9.17.0",
62
+ "stylelint": "^15.10.3",
63
63
  "stylelint-config-plus": "^1.0.4",
64
64
  "vine-ui": "^3.1.12"
65
65
  }