Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(meta): Add a test for testing coverage system (#4794)
* test(designer): Add tests for display of scope ids * test(designer): Add tests for display of scope ids * Add a test * test(designer): fix tests * test(designer): fix tests
- Loading branch information
Showing
7 changed files
with
341 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import fs from 'fs'; | ||
|
||
fs.readFile('code-coverage-results.md', 'utf8', (err, data) => { | ||
if (err) throw err; | ||
|
||
const lines = data.split('\n'); // Split data into lines | ||
const filteredLines = lines.filter((line) => !line.includes('⚪ 0%')); // Filter lines | ||
|
||
fs.writeFile('code-coverage-results.md', filteredLines.join('\n'), (err) => { | ||
if (err) throw err; | ||
// eslint-disable-next-line no-undef | ||
console.log('Filtered file has been saved!'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Code Coverage Report | ||
|
||
![Code Coverage](https://img.shields.io/badge/Code%20Coverage-25.14%25-red?style=for-the-badge) | ||
|
||
| Package | Base Coverage | New Coverage | Difference | | ||
| ------- | ------------- | ------------ | ---------- | | ||
| utils.src.lib.helpers | 🟠 56.45% | 🟠 56.59% | 🟢 0.14% | | ||
| **Overall Coverage** | **🟢 25.13%** | **🟢 25.14%** | **🟢 0.01%** | | ||
|
||
_Minimum allowed coverage is_ `0%`_, this run produced_ `25.14%` | ||
<!-- Sticky Pull Request Comment --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.