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

Remove jest in favor of Node's built-in test runner #583

Merged
merged 37 commits into from
Oct 21, 2024
Merged

Conversation

niik
Copy link
Member

@niik niik commented Oct 17, 2024

Looking at our dependabot alerts for this repo most of them relate to dependencies that we only have because of our jest dependency. With the advent of Node's built-in test runner I took the liberty of switching us over to that, thereby removing the need for jest entirely.

I've updated our minimum required Node engine to v20 here. That's not strictly necessary, node v18 works as well (but needs a different invocation (--loader instead of --import). Since we're about to ship 3.x and Desktop is already on Node 20 I figured it's a good time to bump it though.

When we get to Node v21 we can probably skip the test.mjs script since v21 will have support for specifying glob paths directly.

@niik niik mentioned this pull request Oct 17, 2024
Copy link
Member

@sergiou87 sergiou87 left a comment

Choose a reason for hiding this comment

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

Nice cleanup!! ✨✨✨

@niik niik merged commit ca11a32 into main Oct 21, 2024
6 checks passed
@niik niik deleted the break-all-the-things branch October 21, 2024 13:59
@niik niik mentioned this pull request Oct 22, 2024
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