laboiteproject/lenuage

View on GitHub
gulp/tasks/test.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Dependencies
 */
const gulp  = require('gulp');
const mocha = require('gulp-mocha');

/**
 * Module body / Expose
 */
module.exports = (entry, config) => {
  config = config || {};
  return gulp.src(entry, config)
    .pipe(mocha({
      require: [
        'babel-register'
      ]
    }));
};