书栈网 · BookStack 本次搜索耗时 0.043 秒,为您找到 1288 个相关结果.
  • Guides

    Snapshot Testing An Async Example Timer Mocks Manual Mocks ES6 Class Mocks Bypassing module mocks Using with webpack Using with puppeteer Using with MongoDB DOM Manipulat...
  • 匹配器的使用

    匹配器的使用 常用的匹配器 真值 数字 字符串 数组和可迭代对象 例外 以及更多 匹配器的使用 Jest使用“匹配器”的机制让你可以使用各种方法进行测试 这篇文档将向你介绍一些常用的匹配器, 想要看到完整的列表,请查阅 expect API 的文档 。 常用的匹配器 最简单测试一个值的方法是使用精确匹配的方法。 test ( 'tw...
  • Globals

    Methods Reference afterAll(fn, timeout) afterEach(fn, timeout) beforeAll(fn, timeout) beforeEach(fn, timeout) describe(name, fn) describe.each(table)(name, fn, timeout) 1. de...
  • Guides

    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 Dyn...
  • Guides

    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 Dyn...
  • Globals

    Globals 方法 参考 afterAll(fn, timeout) afterEach(fn, timeout) beforeAll(fn, timeout) beforeEach(fn, timeout) describe(name, fn) describe.each(table)(name, fn, timeout) 1. ...
  • DOM Manipulation

    DOM Manipulation DOM Manipulation Another class of functions that is often considered difficult to test is code that directly manipulates the DOM. Let’s see how we can test the...
  • Globals

    方法 参考 afterAll(fn, timeout) afterEach(fn, timeout) beforeAll(fn, timeout) beforeEach(fn, timeout) describe(name, fn) describe.each(table)(name, fn, timeout) 1. describe.each(...
  • 全局设定

    全局设定 方法 参考 afterAll(fn, timeout) afterEach(fn, timeout) beforeAll(fn, timeout) beforeEach(fn, timeout) describe(name, fn) describe.each(table)(name, fn, timeout) 1. des...
  • Guides

    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 Dyn...