网页 综合 更新时间 2026-11-14 05:12:32

Jest · 🃏 Delightful JavaScript Testing

自动蜘蛛 jestjs.io 正文约 2746 字
Jest · 🃏 Delightful JavaScript Testing
Jest is a delightful JavaScript Testing Framework with a focus on simplicity.
It works with projects using: Babel, TypeScript, Node, React, Angular, Vue and more!
Jest aims to work out of the box, config free, on most JavaScript projects.
Make tests which keep track of large objects with ease. Snapshots live either alongside your tests, or embedded inline.
Tests are parallelized by running them in their own processes to maximize performance.
From it to expect - Jest has the entire toolkit in one place. Well documented, well maintained, well good.
By ensuring your tests have unique global state, Jest can reliably run tests in parallel. To make things quick, Jest runs previously failed tests first and re-organizes runs based on how long test files take.
Generate code coverage by adding the flag --coverage. No additional setup needed. Jest can collect code coverage information from entire projects, including untested files.
Jest uses a custom resolver for imports in your tests, making it simple to mock any object outside of your test’s scope. You can use mocked imports with the rich Mock Functions API to spy on function calls with readable test syntax.
Tests fail—when they do, Jest provides rich context why. Here are some examples:
Jest is a JavaScript testing framework designed to ensure correctness of any JavaScript codebase. It allows you to write tests with an approachable, familiar and feature-rich API that gives you results quickly.
Jest is well-documented, requires little configuration and can be extended to match your requirements.
Jest makes testing delightful.
The Jest core team and contributors regularly speak about Jest and Delightful JavaScript Testing. Check out our talk about Building High-Quality JavaScript Tools at jsconf.eu 2017 and our talk about Jest as a Platform at ReactiveConf 2017.
Jest uses Open Collective to support developers contributing to Jest.
Join 600+ donors who sponsor Jest for $3 or more per month on opencollective.com.
A lot of people! With 100m+ million downloads in the last month, and used on over 15,000,000 public repos on GitHub.
Jest is used extensively at these companies:
Copyright OpenJS Foundation and Jest contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
The OpenJS Foundation | Terms of Use | Privacy Policy | Bylaws | Code of Conduct | Trademark Policy | Trademark List | Cookie Policy
访问原文 返回搜索 https://jestjs.io/
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。