Skip to content

Instantly share code, notes, and snippets.

@ycombinator
Created May 3, 2017 19:49
Show Gist options
  • Save ycombinator/a8d7e5be68b4abf70a1a74526c104f82 to your computer and use it in GitHub Desktop.
Save ycombinator/a8d7e5be68b4abf70a1a74526c104f82 to your computer and use it in GitHub Desktop.
diff --git a/gulpfile.js b/gulpfile.js
index e4c4981..5932c25 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -5,7 +5,7 @@ const gulp = require('gulp');
const g = require('gulp-load-plugins')();
const path = require('path');
const del = require('del');
-const isparta = require('isparta');
+// const isparta = require('isparta');
const runSequence = require('run-sequence');
const pluginHelpers = require('@elastic/plugin-helpers');
@@ -105,17 +105,17 @@ gulp.task('pre-test', () => {
'!./**/__tests__/**',
].concat(fileGlobs.forPlugins());
- return gulp.src(globs)
+ return gulp.src(globs);
// instruments code for measuring test coverage
- .pipe(g.istanbul({
- instrumenter: isparta.Instrumenter,
- includeUntested: true,
- babel: {
- stage: 1 // should match https://github.com/elastic/kibana/blob/master/src/optimize/babel_options.js#L12
- }
- }))
- // force `require` to return covered files
- .pipe(g.istanbul.hookRequire());
+ // .pipe(g.istanbul({
+ // instrumenter: isparta.Instrumenter,
+ // includeUntested: true,
+ // babel: {
+ // stage: 1 // should match https://github.com/elastic/kibana/blob/master/src/optimize/babel_options.js#L12
+ // }
+ // }))
+ // // force `require` to return covered files
+ // .pipe(g.istanbul.hookRequire());
});
gulp.task('test', (cb) => {
@@ -132,7 +132,7 @@ gulp.task('testserver', ['pre-test'], () => {
return gulp.src(globs, { read: false })
.pipe(g.mocha({ ui: 'bdd' }))
- .pipe(g.istanbul.writeReports());
+ // .pipe(g.istanbul.writeReports());
});
gulp.task('testbrowser', () => {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment