Công cụ để kiểm thử code của bạn
We're highlighting interesting features or libraries we think you should know about.
Library Highlight: bun test
Useful Resources
Liên kết đến phầnTesting Tools Ratios Over Time
Testing Tools Ratios Over Time
While Jest has long enjoyed a comfortable spot as the most-used testing tool, Vitest is climbing the ranks so fast that it wouldn't be surprising to see it overtake it in the upcoming year, especially with Jest's satisfaction ratio trending down.
Meanwhile, Storybook is an interesting case study in a project trying its best to address its users' frustrations. It's still showing a slight satisfaction loss compared to last year, but the rate of decline has slowed, and things might start looking up soon.
Liên kết đến phầnOther Testing Tools
Other Testing Tools
While Deno's test runner wasn't included in the survey's main options, it did come first in freeform mentions.
We asked members of the JavaScript community to share their “pick of the year”
My 2025 Pick: SST
I didn't know about SST just a year ago, but I started using it for a new work project and it's been fanstastic! It really deserves more exposure.
We asked members of the JavaScript community to share their “pick of the year”
Liên kết đến phầnNumber of Items
Number of Items
While other categories so far have hovered around 1-2 tools used, when it comes to testing respondents averaged a whopping 4.4, a sign that people may still be looking for that perfect test runner, and that things are far from settled in this area.
Liên kết đến phầnHạnh phúc với Công cụ Kiểm thử
Hạnh phúc với Công cụ Kiểm thử
Happiness remains stable, with a slight uptick over the past three years.
Liên kết đến phầnĐiểm đau với Công cụ Kiểm thử
Điểm đau với Công cụ Kiểm thử
Mocking remains a major pain point for developers, with configuration and setup not far behind.
Bạn đã gặp phải những điểm đau nào khi sử dụng công cụ kiểm thử?
(câu hỏi dạng tự do)
Multiple
Liên kết đến phầnTài nguyên được đề xuất
Tài nguyên được đề xuất
Testing Fundamentals
Ship code with confidence! Learn the basics of testing and apply Test-Driven Development techniques to your workflow. Create automated tests for DOM elements and user interactions. Use mocks and spies to control your environment and test more complex code.
Enterprise UI Development: Testing & Code Quality
Learn unit testing with Vitest, continuous integration via GitHub Actions, component and accessibility testing with Ax, mocking techniques, and code standard enforcement using ESLint and Husky & Lint-Staged.
Cảm ơn các đối tác đã hỗ trợ chúng tôi! Tìm hiểu thêm.