Skip to content

Conversation

@ilteoood
Copy link
Contributor

@ilteoood ilteoood commented Mar 3, 2025

Checklist

@github-actions
Copy link

github-actions bot commented Mar 3, 2025

No linked issues found. Please add the corresponding issues in the pull request description.
Use GitHub automation to close the issue when a PR is merged

Copy link
Collaborator

@simoneb simoneb left a comment

Choose a reason for hiding this comment

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

I'd take the chance to migrate to Node's mocks as well instead of sinon

@ilteoood
Copy link
Contributor Author

ilteoood commented Mar 6, 2025

I'd take the chance to migrate to Node's mocks as well instead of sinon

Is it something I can do in another PR?
I would avoid mixing it with this migration, just to be 100% sure that tests after this still works perfectly

.gitignore Outdated
.vscode
node_modules/
.idea
.nyc_output
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we still need this exclusion?

t.equal(mapUpdateType('bad_input'), updateTypes.any)
t.equal(mapUpdateType(), updateTypes.any)
t.equal(mapUpdateType('any'), updateTypes.any)
t.assert.deepStrictEqual(mapUpdateType('major'), updateTypes.major)
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need the deep part when comparing simple values?

@simoneb
Copy link
Collaborator

simoneb commented Mar 7, 2025

I'd take the chance to migrate to Node's mocks as well instead of sinon

Is it something I can do in another PR? I would avoid mixing it with this migration, just to be 100% sure that tests after this still works perfectly

I'm ok with this, sure 👌

@ilteoood ilteoood requested a review from simoneb March 7, 2025 11:05
@simoneb simoneb merged commit 731961a into fastify:main Mar 7, 2025
2 of 3 checks passed
@github-actions github-actions bot mentioned this pull request Mar 8, 2025
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.

2 participants