书栈网 · BookStack 本次搜索耗时 0.015 秒,为您找到 481 个相关结果.
  • 迁移到Jest

    迁移到Jest jest-codemods 迁移到Jest 如果你想将已有的代码库迁移到 Jest ,下面有几种迁移的方案: 如果你正在使用 Jasmine 或者跟它相似的 API (如Mocha ),Jest 有大多数兼容的API,你可以低成本地迁移到Jest 如果你正在使用 AVA, Expect.js (by Automattic), Ja...
  • 2.8 Test error flows using your favorite test framework

    Test error flows using your favorite test framework One Paragraph Explainer Code example: ensuring the right exception is thrown using Mocha & Chai Code example: ensuring API ret...
  • Testing

    535 2020-12-20 《Vuex v4.0 Document》
    Testing Testing Mutations Testing Actions Testing Getters Running Tests Running in Node Running in Browser Running in Browser with Karma + karma-webpack Testing Try this...
  • DELAYED ROOT SUITE

    915 2018-06-06 《mocha中文文档》
    DELAYED ROOT SUITE 如果想在mocha命令运行之后,先做一些别的工作,再启动测试,可以使用mocha —delay命令,此命令会在全局环境中生成一个run函数,延迟工作完成后调用run函数即可启动测试。 setTimeout ( function () { // do some setup des...
  • 测试

    1058 2018-03-01 《一起学 Node.js》
    4.14.1 mocha 和 supertest 4.14.2 测试覆盖率 4.14.1 mocha 和 supertest mocha 和 suptertest 是常用的测试组合,通常用来测试 restful 的 api 接口,这里我们也可以用来测试我们的博客应用。在 myblog 下新建 test 文件夹存放测试文件,以注册为例讲解 moc...
  • Extension generator

    622 2019-09-24 《LoopBack 4 Document》
    Synopsis Options Arguments Interactive Prompts Synopsis Creates a new LoopBack4 extension. lb4 extension [ options ] [< name >] Options —description : Descrip...
  • Migrating to Jest

    Migrating to Jest jest-codemods Migrating to Jest If you’d like to try out Jest with an existing codebase, there are a number of ways to convert to Jest: If you are using Jas...
  • Migrating to Jest

    jest-codemods If you'd like to try out Jest with an existing codebase, there are a number of ways to convert to Jest: If you are using Jasmine, or a Jasmine like API (for examp...
  • Migrating to Jest

    jest-codemods If you'd like to try out Jest with an existing codebase, there are a number of ways to convert to Jest: If you are using Jasmine, or a Jasmine like API (for examp...
  • 9. Getting started with quizzes and exercises

    9. Getting started with quizzes and exercises 9.1. Quizzes 9.2. Exercises 9.2.1. Installing the exercises 9.2.2. Running exercises 9.3. Unit tests in JavaScript 9.3.1. A typica...