Jest 中文网

Jest 中文网

  • 中文文档
  • API
  • 帮助
  • Blog
  • GitHub
  • 英文官网

›框架指南

简介

  • 快速入门
  • 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
  • ECMAScript Modules
  • 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

API 手册

  • Globals
  • Expect
  • Mock Functions
  • The Jest Object
  • Configuring Jest
  • Jest CLI Options
  • Environment Variables
  • Code Transformation
Edit

Testing Web Frameworks

Jest is a universal testing platform, with the ability to adapt to any JavaScript library or framework. In this section, we'd like to link to community posts and articles about integrating Jest into popular JS libraries.

React

  • Testing ReactJS components with Jest by Kent C. Dodds (@kentcdodds)

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

  • Testing an AngularJS app with Jest 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

  • Testing Angular faster with Jest by Michał Pierzchała (@thymikee)

MobX

  • How to Test React and MobX with Jest by Will Stern (@willsterndev)

Redux

  • Writing Tests 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)
← Testing React Native AppsGlobals →
  • React
  • Vue.js
  • AngularJS
  • Angular
  • MobX
  • Redux
  • Express.js
  • GatsbyJS
  • Hapi.js
Jest 中文网
中文文档
快速入门使用指南API 参考手册
社区
Stack OverflowReactifluxTwitter
更多
BlogGitHubStar
友链
Bootstrap中文网ReactNext.jsNuxt.jsBlitz.jsDocusaurusGatsbyWebpackNPMYarn
Facebook Open Source
Copyright © 2020 Facebook Inc.
Jest 项目及相关资源的版权归 Facebook 或项目贡献者所有
Jest 中文文档遵循 MIT 开源协议
京ICP备15031610号-38