gulp mocha:运行摩卡测试 源码
口香糖摩卡咖啡 运行测试 请记住,这只是围绕Mocha的薄薄包装,而您的问题很可能与Mocha有关。 安装 $ npm install --save-dev gulp-mocha 用法 const gulp = require ( 'gulp' ) ; const mocha = require ( 'gulp-mocha' ) ; exports . default = ( ) => ( gulp . src ( 'test.js' , { read : false } ) // `gulp-mocha` needs filepaths so you can't have any plugins before it . pipe ( mocha ( { reporter : 'nyan' } ) ) ) ; 原料药 摩卡咖啡(选项?) 选项 类型: object 选项直接传递
下载地址
用户评论