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

test: Migrated test/versioned/amqplib to node:test #2612

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bizob2828
Copy link
Member

@bizob2828 bizob2828 commented Sep 24, 2024

Description

Migrated amqplib tests to node:test. I also cleaned up the promise tests and removed the chains and just await promises. I also do most assertions after the test executes to avoid hanging tests. Lastly I added the consume methods, where applicable, to outside the transaction to better mirror a real world use case and simplify the util assertions around segment trees

How to Test

npm run versioned:internal amqplib

Related Issues

Closes #2611

@bizob2828 bizob2828 added the dev:tests Indicates only changes to tests label Sep 24, 2024
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.18%. Comparing base (935ac14) to head (7306d19).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2612      +/-   ##
==========================================
- Coverage   97.23%   97.18%   -0.05%     
==========================================
  Files         291      291              
  Lines       45941    45941              
==========================================
- Hits        44670    44648      -22     
- Misses       1271     1293      +22     
Flag Coverage Δ
integration-tests-cjs-18.x 74.17% <ø> (ø)
integration-tests-cjs-20.x 74.17% <ø> (-0.01%) ⬇️
integration-tests-cjs-22.x 74.22% <ø> (ø)
integration-tests-esm-18.x 49.68% <ø> (ø)
integration-tests-esm-20.x 49.68% <ø> (ø)
integration-tests-esm-22.x 49.71% <ø> (ø)
unit-tests-18.x 88.86% <ø> (ø)
unit-tests-20.x 88.86% <ø> (ø)
unit-tests-22.x 88.87% <ø> (ø)
versioned-tests-18.x 78.94% <ø> (-0.20%) ⬇️
versioned-tests-20.x 78.95% <ø> (-0.20%) ⬇️
versioned-tests-22.x 78.96% <ø> (-0.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev:tests Indicates only changes to tests
Projects
Status: Needs PR Review
Development

Successfully merging this pull request may close these issues.

Migrated amqplib versioned tests to node:test
1 participant