- Getting Started
- Using Matchers
- Testing Asynchronous Code
- Setup and Teardown
- Mock Functions
- Jest Platform
- Jest Community
- More Resources
- Snapshot Testing
- An Async Example
- Timer Mocks
- Manual Mocks
- ES6 Class Mocks
- Bypassing module mocks
- Using with webpack
- Using with puppeteer
- Using with MongoDB
- Using with DynamoDB
- DOM Manipulation
- Watch Plugins
- Migrating to Jest
- Troubleshooting
- Architecture
- Testing React Apps
- Testing React Native Apps
- Testing Web Frameworks
- Expect
- Mock Functions
- The Jest Object
- Configuring Jest
- Jest CLI Options
- Globals
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
Testing Web Frameworks
虽然Jest可能被看做为React特定的测试运行工具,事实上,其是一个万能的测试平台,其有能力适应任何JavaScript库或框架。 在这一节,我们想要链接一些关于将Jest继承到其他流行JS库中的社区帖子和文章。
Vue.js
- Testing Vue.js components with Jest by Alex Jover Morales (@alexjoverm)
- Jest for all: Episode 1 — Vue.js by Cristian Carlesso (@kentaromiura)
AngularJS
- 使用Jest测试AngularJS应用 by Matthieu Lux (@Swiip)
- Running AngularJS Tests with Jest by Ben Brandt (@benjaminbrandt)
- AngularJS Unit Tests with Jest Actions (Traditional Chinese) by Chris Wang (@dwatow)
Angular
- 使用Jest加快Angular测试 by Michał Pierzchała (@thymikee)
MobX
- 如何用Jest测试React和MobX by Will Stern (@willsterndev)
Redux
- 写测试 by Redux docs
Express.js
- How to test Express.js with Jest and Supertest by Albert Gao (@albertgao)
GatsbyJS
- Unit Testing by GatsbyJS docs
Hapi.js
- Testing Hapi.js With Jest by Niralar (Sivasankar)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论