monocart-reporter 2.9.16 → 2.9.17

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/README.md CHANGED
@@ -45,6 +45,7 @@ Preview: [https://cenfun.github.io/monocart-reporter](https://cenfun.github.io/m
45
45
  - [Global Coverage Report](#global-coverage-report)
46
46
  - [Coverage Options](#coverage-options)
47
47
  - [Coverage Examples](#coverage-examples)
48
+ * [Attach Markdown/Mermaid](#attach-markdownmermaid)
48
49
  * [Attach Lighthouse Audit Report](#attach-lighthouse-audit-report)
49
50
  * [Attach Network Report](#attach-network-report)
50
51
  * [Global State Management](#global-state-management)
@@ -829,6 +830,25 @@ see [Collecting V8 Coverage Data from Node.js](https://github.com/cenfun/monocar
829
830
  - [nextjs-with-playwright](https://github.com/cenfun/nextjs-with-playwright)
830
831
  - [code-coverage-with-monocart-reporter](https://github.com/edumserrano/playwright-adventures/blob/main/demos/code-coverage-with-monocart-reporter/)
831
832
 
833
+ ### Attach Markdown/Mermaid
834
+ ```js
835
+ test.info().attach('text/markdown:', {
836
+ contentType: 'text/markdown',
837
+ body: `### My Markdown Title
838
+ - item 1
839
+ - item 2`
840
+ });
841
+
842
+ test.info().attach('text/mermaid:', {
843
+ contentType: 'text/mermaid',
844
+ body: `
845
+ flowchart LR
846
+ id
847
+ `
848
+ });
849
+
850
+ ```
851
+
832
852
  ## Attach Lighthouse Audit Report
833
853
  Attach an audit report with API `attachAuditReport(runnerResult, testInfo)`. Arguments:
834
854
  - `runnerResult` lighthouse result. see [lighthouse](https://github.com/GoogleChrome/lighthouse/tree/main/docs)