Jest测试语法系列之Globals

在上一篇文章中,咱们主要介绍了Jest测试框架语法系列之Matchers的相关内容,本篇主要涉及的是Global Functions(全局函数),也是官方提供给开发者的核心功能之一。官方API地址为:https://jestjs.io/docs/en/api。web 方法 afterAll(fn, timeout) afterEach(fn, timeout) beforeAll(fn, time
相关文章
相关标签/搜索