书栈网 · BookStack 本次搜索耗时 0.031 秒,为您找到 479 个相关结果.
  • 测试插件

    测试插件 概述 测试入口 测试脚本 调试测试文件 提示 使用 Insider 版本开发插件 调试时禁用其他插件 使用vscode-test 自定义配置 从 vscode 迁移 下一步 测试插件 VS Code 为你的插件提供了运行和调试的能力。测试会运行在一个特殊的 VS Code 实例中——扩展开发环境 ,这个特殊实例拥有访问 ...
  • Writing tests

    Writing tests Unit testing hooks Test database setup Testing services Code coverage Changing the default test directory What’s next? Writing tests Every time we generate ...
  • 更多

    更多实践 gulp browser-sync open 更多实践 gulp 如果我们的框架里没有gulp,会显得有点low,那我们也使用gulp作为构建工具吧 一般作用 构建,打包 watch 先实现一个简单的watch吧 npm i - g gulp npm i - S gulp npm i - S gulp - ...
  • 编写测试

    编写测试 mocha test 运行测试 before和after 参考源码 读后有收获可以支付宝请作者喝咖啡,读后有疑问请加微信群讨论: 编写测试 假设我们编写了一个hello.js ,并且输出一个简单的求和函数: // hello.js module . exports = function (... rest ) ...
  • 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...
  • 8 Node.js 单元测试

    1600 2018-03-10 《nodejs 基础教程》
    8 Node.js 单元测试 8.1 单元测试 8 Node.js 单元测试 8.1 单元测试 对于一个程序员来说不仅要写代码,还要验证一下代码写得到底对不对,写单元测试就是一个通用且有效的解决方案。单元测试很重要,可以将错误扼杀在摇篮中,如果你认为没有写单元测试也过得很好,也许等我介绍完 mocha 之后,你会改变主意的。下面给出一个栗子,...
  • Laravel HTTP——Pipeline中间件处理源码分析

    前言 从原始装饰者模式到闭包装饰者 原始装饰者模式 无构造函数的装饰者 闭包装饰者模式 闭包装饰者的抽象化 闭包装饰者的自动化 laravel的闭包装饰者——Pipeline 前言 当所有的路由都加载完毕后,就会根据请求的 url 来将请求分发到对应的路由上去。然而,在分发到路由之前还要经过各种中间件的计算。laravel 利用装饰...
  • 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 Ja...
  • INTERFACES

    787 2018-06-06 《mocha中文文档》
    INTERFACES mocha的测绘接口类型指的是集中测试用例组织模式的选择。Mocha提供了BDD ,TDD ,Exports ,QUnit 和Require-style 几种接口。 BDD BDD测试提供了describe(),context(),it(),specify(),before(),after(),beforeEach()和aft...