Skip to content

chore: Remove deprecated jest matchers for native aliases - #2690

Merged
ajay-sentry merged 6 commits into
mainfrom
Ajay/jest-deprecate-chores
Mar 13, 2024
Merged

ajay-sentry merged 6 commits into
mainfrom
Ajay/jest-deprecate-chores

Conversation

@ajay-sentry

@ajay-sentry ajay-sentry commented Mar 12, 2024 •

Copy link
Copy Markdown
Contributor

Description

As of jest 29, aliased matchers like "toBeCalled" "toBeCalledTimes" etc. have been deprecated in favor of their native counterparts "toHaveBeenCalled" and others.

This PR aims to get rid of all deprecated matchers

jest changelog

closes: codecov/engineering-team#1404

Manual Testing

Chore, UT's passing locally should suffice here since this only touches jest.

Link to Sample Entry

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-public-qa

codecov-public-qa Bot commented Mar 12, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5d4f86d) 98.43% compared to head (8b20af4) 98.43%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2690   +/-   ##
=======================================
  Coverage   98.43%   98.43%           
=======================================
  Files         854      854           
  Lines       11918    11918           
  Branches     3085     3130   +45     
=======================================
  Hits        11732    11732           
  Misses        183      183           
  Partials        3        3           
Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.13% <ø> (ø)
Pages 99.33% <ø> (ø)
Services 99.61% <ø> (ø)
Shared 99.83% <ø> (ø)
UI 94.17% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d4f86d...8b20af4. Read the comment docs.

@codecov

codecov Bot commented Mar 12, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.44%. Comparing base (5d4f86d) to head (8b20af4).

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2690   +/-   ##
=====================================
  Coverage   98.44   98.44           
=====================================
  Files        854     854           
  Lines      11918   11918           
  Branches    3130    3087   -43     
=====================================
  Hits       11732   11732           
  Misses       183     183           
  Partials       3       3           
Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.13% <ø> (ø)
Pages 99.33% <ø> (ø)
Services 99.61% <ø> (ø)
Shared 99.83% <ø> (ø)
UI 94.17% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d4f86d...8b20af4. Read the comment docs.

@codecov-qa

codecov-qa Bot commented Mar 12, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.43%. Comparing base (5d4f86d) to head (8b20af4).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2690   +/-   ##
=======================================
  Coverage   98.43%   98.43%           
=======================================
  Files         854      854           
  Lines       11918    11918           
  Branches     3138     3120   -18     
=======================================
  Hits        11732    11732           
  Misses        183      183           
  Partials        3        3           
Components Coverage Δ
Assets 55.55% <ø> (ø)
Layouts 97.13% <ø> (ø)
Pages 99.33% <ø> (ø)
Services 99.61% <ø> (ø)
Shared 99.83% <ø> (ø)
UI 94.17% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d4f86d...8b20af4. Read the comment docs.

@codecov-releaser

codecov-releaser commented Mar 12, 2024 •

Copy link
Copy Markdown
Collaborator

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Commit Created Cloud Enterprise
71fcdc6 Tue, 12 Mar 2024 22:15:09 GMT Expired Expired
71fcdc6 Tue, 12 Mar 2024 22:15:14 GMT Expired Expired
8b20af4 Wed, 13 Mar 2024 14:41:22 GMT Cloud Enterprise

@spalmurray-codecov spalmurray-codecov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@ajay-sentry
ajay-sentry merged commit e6213f4 into main Mar 13, 2024
@ajay-sentry
ajay-sentry deleted the Ajay/jest-deprecate-chores branch March 13, 2024 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove deprecated Jest Matchers

3 participants