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(idempotency): migrate to vitest #3124

Merged
merged 8 commits into from
Sep 26, 2024
Merged

Conversation

dreamorosi
Copy link
Contributor

@dreamorosi dreamorosi commented Sep 26, 2024

Summary

Changes

Please provide a summary of what's being changed

This PR updates the unit tests for the Idempoency package so that they use vitest instead of Jest.

The e2e tests for the utility will be addressed in a future PR. I also removed a number of test cases that were redundant while leaving coverage unaffected. There's still room for further improvement but I decided to not address it now for the sake of keeping the PR focused.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #3123


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi dreamorosi self-assigned this Sep 26, 2024
@dreamorosi dreamorosi requested review from a team as code owners September 26, 2024 15:37
@boring-cyborg boring-cyborg bot added automation This item relates to automation dependencies Changes that touch dependencies, e.g. Dependabot, etc. idempotency This item relates to the Idempotency Utility internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.) tests PRs that add or change tests labels Sep 26, 2024
@pull-request-size pull-request-size bot added the size/XL PRs between 500-999 LOC, often PRs that grown with feedback label Sep 26, 2024
@pull-request-size pull-request-size bot added size/XXL PRs with 1K+ LOC, largely documentation related and removed size/XL PRs between 500-999 LOC, often PRs that grown with feedback labels Sep 26, 2024
Copy link
Contributor

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

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

Hey @dreamorosi! I see that you basically moved things from jest to vitest and reorganized files. If CI is green I'm good with this PR.

I just left a comment to check if the comment was intentional or not.
APPROVED!

packages/idempotency/tests/unit/IdempotencyHandler.test.ts Outdated Show resolved Hide resolved
am29d
am29d previously approved these changes Sep 26, 2024
Copy link
Contributor

@am29d am29d left a comment

Choose a reason for hiding this comment

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

Nice! 👌

@dreamorosi dreamorosi dismissed stale reviews from leandrodamascena and am29d via a77fe06 September 26, 2024 18:47
Copy link

@dreamorosi
Copy link
Contributor Author

Sorry, I had to make another commit to remove a leftover test I had left commented out.

@am29d, @leandrodamascena, if you could click approve again please.

@dreamorosi dreamorosi merged commit 9548d77 into main Sep 26, 2024
18 checks passed
@dreamorosi dreamorosi deleted the test/idempotency_vitest branch September 26, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation This item relates to automation dependencies Changes that touch dependencies, e.g. Dependabot, etc. idempotency This item relates to the Idempotency Utility internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.) size/XXL PRs with 1K+ LOC, largely documentation related tests PRs that add or change tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maintenance: migrate test runner to vitest for idempotency package
3 participants