import gulp from 'gulp';
import babel from 'babel-core/register';
import nodemon from 'gulp-nodemon';
import mocha from 'gulp-mocha';
import istanbul from 'gulp-babel-istanbul';
import injectModules from 'gulp-inject-modules';
import dotenv from 'dotenv';
import { Instrumenter } from 'isparta';

<<<<<<< HEAD
process.env.NODE_ENV = 'test';

gulp.task('start', () => {
  nodemon({
    script: 'index.js',
    env: { NODE_ENV: 'development' }
  });
});

gulp.task('coverage', (cb) => {
  gulp.src('src/**/*.js')
=======
dotenv.config();

process.env.NODE_ENV = 'test';

gulp.task('coverage', (done) => {
  gulp.src(['server/**/*.js'])
    .pipe(istanbul({ instrumenter: Instrumenter }))
>>>>>>> 71078f142cc6fea5378d92cd307e797381ef4e79
    .pipe(istanbul())
    .pipe(istanbul.hookRequire())
    .on('finish', () => {
      gulp.src('test/**/*.js')
        .pipe(mocha({
          compilers: [
            'js:babel-core/register',
          ]
        }))
        .pipe(istanbul.writeReports())
        .pipe(istanbul.enforceThresholds({ thresholds: { global: 90 } }))
        .on('end', done);
    });
});

gulp.task('test', () => {
  return gulp.src(['test/postIttest.js'])
    .pipe(mocha({
      compilers: [
        'js:babel-core/register',
      ]
    }));
});

@@ -294,229 +294,8 @@
 ';%0A%0A
-%3C%3C%3C%3C%3C%3C%3C HEAD%0Aprocess.env.NODE_ENV = 'test';%0A%0Agulp.task('start', () =%3E %7B%0A  nodemon(%7B%0A    script: 'index.js',%0A    env: %7B NODE_ENV: 'development' %7D%0A  %7D);%0A%7D);%0A%0Agulp.task('coverage', (cb) =%3E %7B%0A  gulp.src('src/**/*.js')%0A=======
 %0Adot
@@ -462,57 +462,8 @@
 %7D))%0A
-%3E%3E%3E%3E%3E%3E%3E 71078f142cc6fea5378d92cd307e797381ef4e79%0A
     

Fix merge conflict