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(core): Switch to vitest #13458

Closed
wants to merge 1 commit into from
Closed

test(core): Switch to vitest #13458

wants to merge 1 commit into from

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Aug 26, 2024

Extracted from #13439

This PR converts the jest test in our core package to vitest.

Locally, this reduced the test run time from ~60s to ~20s, so by ~3x. In a follow-up PR, I'm gonna improve the offline transport tests to use fake timers which should further decrease test runtime.

closes #13434

5x speed improvement!
@Lms24 Lms24 requested review from AbhiPrasad, a team and s1gr1d and removed request for a team August 26, 2024 11:56
@Lms24
Copy link
Member Author

Lms24 commented Aug 26, 2024

oof
image

I guess that's the reason why Node 14 tests are failing 😢

@Lms24
Copy link
Member Author

Lms24 commented Aug 26, 2024

Soo, I'm not the first one running into the node v14 issue 😢

#12959 (comment)

@Lms24 Lms24 self-assigned this Aug 26, 2024
@AbhiPrasad
Copy link
Member

Yeah unfortunately we need to keep using jest for our core packages :(

@Lms24 Lms24 closed this Aug 26, 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.

Switch to vitest in @sentry/core
2 participants