Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: display failed-tests annotation only in jest-coverage-report-action #2347

Merged

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Apr 16, 2024

ref: https://github.com/ArtiomTr/jest-coverage-report-action?tab=readme-ov-file#change-annotations

Checklist: (if applicable)

  • Mention to the original issue
  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

@github-actions github-actions bot added size:XS ~10 LoC size:S 10~30 LoC and removed size:XS ~10 LoC labels Apr 16, 2024
Copy link

github-actions bot commented Apr 16, 2024

Coverage report for ./react

Caution

Test run failed

St.
Category Percentage Covered / Total
🔴 Statements 3% 118/3933
🔴 Branches 3.28% 87/2656
🔴 Functions 1.46% 19/1301
🔴 Lines 2.96% 114/3855

Test suite run failed

Failed tests: 1/32. Failed suites: 1/4.
  ● iSizeToSize › should convert iSize to Size with default fixed value

    expect(received).toEqual(expected) // deep equality

    - Expected  - 1
    + Received  + 1

      Object {
        "number": 1024,
    -   "numberFixed": "1023",
    +   "numberFixed": "1024",
        "numberUnit": "1024B",
        "unit": "B",
      }

      12 |     const targetSizeUnit = 'B';
      13 |     const result = iSizeToSize(sizeWithUnit, targetSizeUnit);
    > 14 |     expect(result).toEqual({
         |                    ^
      15 |       number: 1024,
      16 |       numberFixed: '1023',
      17 |       unit: 'B',

      at Object.<anonymous> (src/helper/index.test.tsx:14:20)

Report generated by 🧪jest coverage report action from d2d584b

@yomybaby yomybaby force-pushed the feat/display-failed-tests-annotation-only-github-action branch from d2d584b to fba497d Compare April 16, 2024 13:49
@github-actions github-actions bot added size:XS ~10 LoC and removed size:S 10~30 LoC labels Apr 16, 2024
@yomybaby yomybaby merged commit 348fc73 into main Apr 17, 2024
9 checks passed
@yomybaby yomybaby deleted the feat/display-failed-tests-annotation-only-github-action branch April 17, 2024 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS ~10 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant