|
1 | 1 | // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
2 | 2 |
|
3 |
| -exports[`generateMdReportsDiff > should format Markdown comment summarizing changes between reports 1`] = ` |
| 3 | +exports[`generateMdReportsDiff > should format Markdown comment for improved reports diff 1`] = ` |
4 | 4 | "# Code PushUp
|
5 | 5 |
|
6 | 6 | 🙌 Code PushUp report has **improved** – compared target commit \`0123456\` with source commit \`abcdef0\`.
|
@@ -46,7 +46,59 @@ exports[`generateMdReportsDiff > should format Markdown comment summarizing chan
|
46 | 46 | |Lighthouse|Largest Contentful Paint|🟨 **1.4 s**|🟨 1.5 s|<span style="color: green">▼ **-8%**</span>|
|
47 | 47 | |Lighthouse|Speed Index|🟩 **1.1 s**|🟩 1.2 s|<span style="color: green">▼ **-4%**</span>|
|
48 | 48 |
|
49 |
| -Other 40 audits are unchanged. |
| 49 | +40 other audits are unchanged. |
| 50 | +
|
| 51 | +</details> |
| 52 | +" |
| 53 | +`; |
| 54 | + |
| 55 | +exports[`generateMdReportsDiff > should format Markdown comment for mixed reports diff 1`] = ` |
| 56 | +"# Code PushUp |
| 57 | +
|
| 58 | +😐 Code PushUp report has both **improved and regressed** – compared target commit \`0123456\` with source commit \`abcdef0\`. |
| 59 | +
|
| 60 | +## 🏷️ Categories |
| 61 | +
|
| 62 | +|🏷️ Category|⭐ Current score|⭐ Previous score|🗠 Score change| |
| 63 | +|:--|:--:|:--:|:--:| |
| 64 | +|Performance|🟢 **94**|🟢 92|<span style="color: green">▲ **+2**</span>| |
| 65 | +|Bug prevention|🟡 **63**|🟡 68|<span style="color: red">▼ **-5**</span>| |
| 66 | +
|
| 67 | +<details> |
| 68 | +<summary>1 other category is unchanged.</summary> |
| 69 | +
|
| 70 | +- Code style: 🟡 **54** |
| 71 | +
|
| 72 | +</details> |
| 73 | +
|
| 74 | +
|
| 75 | +## 🎗️ Groups |
| 76 | +
|
| 77 | +<details> |
| 78 | +<summary>👍 <strong>1</strong> group improved</summary> |
| 79 | +
|
| 80 | +|🔌 Plugin|🎗️ Group|⭐ Current score|⭐ Previous score|🗠 Score change| |
| 81 | +|:--|:--|:--:|:--:|:--:| |
| 82 | +|Lighthouse|Performance|🟢 **94**|🟢 92|<span style="color: green">▲ **+2**</span>| |
| 83 | +
|
| 84 | +1 other group is unchanged. |
| 85 | +
|
| 86 | +</details> |
| 87 | +
|
| 88 | +
|
| 89 | +## 🛡️ Audits |
| 90 | +
|
| 91 | +<details> |
| 92 | +<summary>👍 <strong>3</strong> audits improved, 👎 <strong>1</strong> audit regressed</summary> |
| 93 | +
|
| 94 | +|🔌 Plugin|🛡️ Audit|📏 Current value|📏 Previous value|🗠 Value change| |
| 95 | +|:--|:--|:--:|:--:|:--:| |
| 96 | +|ESLint|Disallow unused variables|🟥 **1 error**|🟩 passed|<span style="color: red">▲ **+∞%**</span>| |
| 97 | +|Lighthouse|First Contentful Paint|🟨 **1.1 s**|🟨 1.2 s|<span style="color: green">▼ **-4%**</span>| |
| 98 | +|Lighthouse|Largest Contentful Paint|🟨 **1.4 s**|🟨 1.5 s|<span style="color: green">▼ **-8%**</span>| |
| 99 | +|Lighthouse|Speed Index|🟩 **1.1 s**|🟩 1.2 s|<span style="color: green">▼ **-4%**</span>| |
| 100 | +
|
| 101 | +48 other audits are unchanged. |
50 | 102 |
|
51 | 103 | </details>
|
52 | 104 | "
|
|
0 commit comments