Skip to content

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 a team, AbhiPrasad 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
@Lms24 Lms24 deleted the lms/test-core-vitest branch December 3, 2024 09:31
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