jest-coverage-comment

Comments a pull request or commit with the jest code coverage badge, full report and tests summary

MIT License

Stars
80
Committers
4

Bot releases are hidden (Show)

jest-coverage-comment - v1.0.27 Latest Release

Published by MishaKav about 1 month ago

What's Changed

  • Fix use cases when comment post by not github-actions[bot] and not updated, thanks to @mluizaa00 for contribution

Full Changelog: https://github.com/MishaKav/jest-coverage-comment/compare/v1.0.26...v1.0.27

jest-coverage-comment - v1.0.26

Published by MishaKav 6 months ago

What's Changed

Full Changelog: https://github.com/MishaKav/jest-coverage-comment/compare/v1.0.25...v1.0.26

jest-coverage-comment - Change `node16` to `node20`

Published by MishaKav 9 months ago

Change node16 to node20, thanks to @kagankan for contribution

jest-coverage-comment - v1.0.24

Published by MishaKav 11 months ago

  • Take the right serverUrl in non github.com environments like selfhosted github, e.g. link to lines uses then the correct link, thanks to @c0un7-z3r0 for contribution
jest-coverage-comment - Remove summary error in annotations

Published by MishaKav over 1 year ago

  • Remove summary error in annotations when provide one of junitxml-path / coverage-path / multiple-files / multiple-junitxml-files and not provide coverage-summary-path which have default value
  • bump dev dependencies
jest-coverage-comment - support `pull_request_target` event to add comments

Published by MishaKav almost 2 years ago

  • Support pull_request_target event to add comments, thanks to @chirag-madlani for contribution
jest-coverage-comment - Support matrix with individual comments

Published by MishaKav almost 2 years ago

What's Changed

Support matrix with individual comments. When you run in a matrix, and you want that every job will post a comment, you can use the unique-id-for-comment: ${{ matrix.node-version }}. This will post a comment for every job, and will update them on every run by @MishaKav in https://github.com/MishaKav/jest-coverage-comment/pull/50

New Contributors

Full Changelog: https://github.com/MishaKav/jest-coverage-comment/compare/v1.0.20...v1.0.21

jest-coverage-comment - Internal improvements, fix typos and enhance formatting

Published by MishaKav almost 2 years ago

  • Huge thanks to @paescuj for contribution. Many internal things such:
    • Consistent usage of terms and letter casing
    • Fix typos and enhance formatting in README.md
    • Use single quotes whenever possible
    • Use JSDoc to describe the functions, so the descriptions are displayed in IDE
jest-coverage-comment - Fix failing the action when the event type is not supporte

Published by MishaKav almost 2 years ago

  • Fix failing the action when the event type is not pull_request/push. Now it will just post warning message if you try to comment (and not fail the whole action). If you just using an output of the action you will be able to run this action on events like schedule/workflow_dispatch etc
  • Add full CHANGELOG.md (current file with all history). Those whos use dependabot now will be able to see the changes directly in the PR
jest-coverage-comment - Support multiple junitxml files

Published by MishaKav about 2 years ago

- name: Jest coverage comment
  uses: MishaKav/jest-coverage-comment@main
  with:
    multiple-junitxml-files: |
      My-Title-1, ./coverage_1/junit.xml
      My-Title-2, ./coverage_2/junit.xml

image

jest-coverage-comment - Fix errors for old junit format

Published by MishaKav about 2 years ago

old versions like 10 of jest-junit do not provide a summary for the errors field.
calculate it manually.

jest-coverage-comment - Fix error when reading coverage txt

Published by MishaKav about 2 years ago

  • Fix error when reading coverage txt
  • Improve warnings when a comment is too long
  • Remove unrelevant suggestions from the warning
jest-coverage-comment - Swap branch and functions (typo)

Published by MishaKav about 2 years ago

jest-coverage-comment - add ability to remove links from report

Published by MishaKav about 2 years ago

add new properties:

  • remove-links-to-files
  • remove-links-to-lines

it will significantly reduce comment length which is useful in large reports

image

jest-coverage-comment - Support istanbul report

Published by MishaKav about 2 years ago

Add support for istanbul report (remove extra slash on folders)

jest-coverage-comment - support multiple files for mono repo projects

Published by MishaKav about 2 years ago

support mode for mono-repos:

image

jest-coverage-comment - fix changed files

Published by MishaKav over 2 years ago

  • fix changed files (when the first commit comes in push evnet, it fails to compare it with head commit)
jest-coverage-comment - remove strip colors

Published by MishaKav over 2 years ago

jest-coverage-comment - Prevent total line from being treated as folder, correct spellings

Published by MishaKav over 2 years ago

  • Prevent total line from being treated as folder + correct spellings
  • Big thanks for @paescuj for the PR
jest-coverage-comment - Fix empty folders on changed files

Published by MishaKav over 2 years ago