书栈网 · BookStack 本次搜索耗时 0.026 秒,为您找到 1242 个相关结果.
  • Testing Asynchronous Code

    Testing Asynchronous Code Promises Async/Await Callbacks .resolves / .rejects Testing Asynchronous Code It’s common in JavaScript for code to run asynchronously. When you ...
  • An Async Example

    An Async Example .resolves async /await Error handling .rejects An Async Example First, enable Babel support in Jest as documented in the Getting Started guide. Let’s i...
  • 异步示例

    .resolves async /await 错误处理 .rejects 首先, 像 Getting Started 里面所说的那样, 启用babel的支持 Let’s implement a module that fetches user data from an API and returns the user name. // ...
  • Testing Asynchronous Code

    回调 Promises .resolves / .rejects Async/Await 在JavaScript中执行异步代码是很常见的。 当你有以异步方式运行的代码时,Jest 需要知道当前它测试的代码是否已完成,然后它可以转移到另一个测试。 Jest有若干方法处理这种情况。 回调 最常见的异步模式是回调函数。 例如,假设您有一个 fet...
  • Testing Asynchronous Code

    回调 Promises .resolves / .rejects 仅用于jest 20.0.0+ Async/Await 在JavaScript中执行异步代码是很常见的。 当你有以异步方式运行的代码时,Jest 需要知道当前它测试的代码是否已完成,然后它可以转移到另一个测试。 Jest有若干方法处理这种情况。 回调 最常见的异步模式是回调函...
  • Tutorials 🧠

    Introduction to ml5.js Running a local web server Promises and Callbacks in ml5
  • Integrations

    Promises AWS Lambda Browser Library GeoJSON MongoDB Driver Deprecation Warnings Testing with Jest SSL Connections
  • What Is a Smart Contract?

    622 2021-02-11 《Mastering Ethereum》
    What Is a Smart Contract? What Is a Smart Contract? The term smart contract has been used over the years to describe a wide variety of different things. In the 1990s, cryptogra...
  • 与 puppeteer 一起使用

    与 puppeteer 一起使用 Use jest-puppeteer Preset Custom example without jest-puppeteer preset 与 puppeteer 一起使用 通过 Global Setup/Teardown 和 Async Test Environment 这些 API, Jest 可以很丝滑...
  • Using with puppeteer

    Using with puppeteer Use jest-puppeteer Preset Custom example without jest-puppeteer preset Using with puppeteer With the Global Setup/Teardown and Async Test Environment AP...