UNPKG

@nurun-sf/spark-component

Version:

A tool for building spark components

28 lines (24 loc) 639 B
'use strict'; const mochaPhantomJS = require('gulp-mocha-phantomjs'); const config = require('../lib/config'); module.exports = function (gulp) { return function () { return gulp.src('tests/runner.html', { read: false, }) .pipe(mochaPhantomJS({ phantomjs: { useColors: true, hooks: 'mocha-phantomjs-istanbul', coverageFile: './coverage/coverage.json', }, })) // https://github.com/gulpjs/gulp/issues/259#issuecomment-61976830 .on('error', function (err) { if (config.watch) { console.error(err.message); this.emit('end'); } }); }; };