Closed gweesin closed 1 month ago
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)
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.
Update the Vitest version to the latest one to achieve better performance.
Before:
After:
Types of changes