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

perf: bump vitest version to latest #4208

Merged
merged 5 commits into from
Apr 8, 2024

Conversation

gweesin
Copy link
Contributor

@gweesin gweesin commented Apr 4, 2024

Description

When I contributed to this repo, I noticed that the git commit pre-hook was too long. Upon analysis, I found that it is caused by unit tests.

However, simply bumping the version of Vitest can significantly improve performance.

cd packages/ui

vitest run

Update the Vitest version to the latest one to achieve better performance.

Before:

Test Files  95 passed | 1 skipped (96)
     Tests  241 passed | 1 skipped (242)
      Time  48.90s (in thread 9.02s, 541.97%)

After:

 Test Files  95 passed | 1 skipped (96)
      Tests  241 passed | 1 skipped (242)
   Start at  18:08:10
   Duration  22.93s (transform 7.70s, setup 14ms, collect 155.86s, tests 8.80s, environment 118.10s, prepare 20.85s)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement/refactoring (non-breaking change that doesn't add any feature but make things better)

@m0ksem m0ksem merged commit 1ecf6e1 into epicmaxco:develop Apr 8, 2024
2 checks passed
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