UNPKG

readutf

Version:

A thin wrapper around fs.readFile that automatically sets the encoding to utf8 on your behest

16 lines (13 loc) 433 B
var gulp = require('gulp'); var config = require('./config'); var mocha = require('gulp-mocha'); var istanbul = require('gulp-istanbul'); gulp.task('cover', ['clean', 'instrument'], function() { return gulp.src(config.tests.unit, { read: false }) .pipe(mocha({ reporter: 'dot', ui: 'mocha-given', require: ['coffee-script/register', 'should', 'should-sinon'] })) .pipe(istanbul.writeReports()); });