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(test): Use SWC as Jest transformer #288

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

Thisen
Copy link
Contributor

@Thisen Thisen commented Dec 1, 2021

Using @swc/jest as the Jest transformer.

Went from 10.351 secs to 3.621 secs on my machine. That's about 65% faster.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 1, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 965f5b1:

Sandbox Source
React Configuration
React Typescript Configuration
React Browserify Configuration
React Snowpack Configuration
React Parcel Configuration

Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

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

Thanks!!

"transform": {
"^.+\\.(t|j)sx?$": [
"@swc/jest"
]
Copy link
Member

Choose a reason for hiding this comment

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

This is nice. It's now consistent with other two.

@dai-shi dai-shi merged commit a0bc4a5 into pmndrs:main Dec 1, 2021
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