Skip to content

perf: bump vitest version to latest#4208

Merged
m0ksem merged 5 commits intoepicmaxco:developfrom
gweesin:perf/bump-vitest
Apr 8, 2024
Merged

perf: bump vitest version to latest#4208
m0ksem merged 5 commits intoepicmaxco:developfrom
gweesin:perf/bump-vitest

Conversation

@gweesin
Copy link
Copy Markdown
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
@gweesin gweesin deleted the perf/bump-vitest branch June 15, 2025 12:50
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