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

Drop jest #266

Merged
merged 4 commits into from Apr 22, 2024
Merged

Drop jest #266

merged 4 commits into from Apr 22, 2024

Conversation

BenoitZugmeyer
Copy link
Owner

@BenoitZugmeyer BenoitZugmeyer commented Apr 22, 2024

Tests are failing with ESLint 9.1.0 following this change.

The retrier library tests that some promise is instanceof Promise, but the condition fails because the promise seems to come from a different JavaScript realm, probably related to Jest usages of vm (it could be related to jestjs/jest#2549, but the issue occurs solely within the dependencies, not the test code)

Jest does not provide any benefit for this project, and now that we droped Node 14, we can just use de native Node Test Runner. Not only this fixes the issue, it removes a bit of maintenance, and run tests 2 times faster on my machine.

@BenoitZugmeyer BenoitZugmeyer marked this pull request as ready for review April 22, 2024 13:59
@BenoitZugmeyer BenoitZugmeyer merged commit 1f6b29d into main Apr 22, 2024
12 checks passed
@BenoitZugmeyer BenoitZugmeyer deleted the drop-jest branch April 22, 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.

None yet

1 participant