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

chore: add speedy jest compilation #341

Merged
merged 1 commit into from Dec 19, 2023
Merged

Conversation

rileydcampbell
Copy link
Contributor

Summary

Saw the backend team started using speedy web compiler and tested it out for UniswapX service. Works well!

ts-jest has a 6 - 12 second lag when compiling. This compilation lag gets extra bad if you run jest in watch mode. Instead, we can use swc as a drop-in replacement to reduce the lag to one second.

Before SWC

Screenshot 2023-12-19 at 11 01 39 AM

After SWC

Screenshot 2023-12-19 at 11 01 01 AM

Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@swc/jest 0.2.29 None +17 407 MB kdy1
@swc/core 1.3.101 filesystem, shell, environment +12 407 MB kdy1

@rileydcampbell rileydcampbell merged commit 30e8636 into main Dec 19, 2023
3 checks passed
@rileydcampbell rileydcampbell deleted the add_speedy_compilation branch December 19, 2023 21:08
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

2 participants