Skip to content

Commit

Permalink
. t update gulp-mocha
Browse files Browse the repository at this point in the history
Co-Authored-By: Llewellyn Falco <10874+isidore@users.noreply.github.com>
  • Loading branch information
mch and isidore committed Dec 6, 2024
1 parent ac65f3b commit cca8c6b
Show file tree
Hide file tree
Showing 3 changed files with 249 additions and 43 deletions.
19 changes: 12 additions & 7 deletions gulpfile.js → gulpfile.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
"use strict";

const gulp = require("gulp");
const $ = require("gulp-load-plugins")();
import gulp from "gulp";
import mocha from 'gulp-mocha';
import eslint from 'gulp-eslint';

import * as gulp_load_plugins from "gulp-load-plugins";

const $ = gulp_load_plugins;

const paths = {
mochaTests: ["test/**/*[Tt]ests.js", "test/**/*[Tt]ests.mjs"],
filesToLint: ["./lib/**/*.js", "./test/**/*.js", "gulpfile.js"],
filesToLint: ["./lib/**/*.js", "./test/**/*.js", "gulpfile.mjs"],
sourceJSFilesForCodeCoverage: ["./lib/**/*.js"],
};

gulp.task("lint", function () {
return gulp
.src(paths.filesToLint)
.pipe($.eslint())
.pipe($.eslint.format())
.pipe($.eslint.failAfterError());
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});

gulp.task(
Expand All @@ -28,7 +33,7 @@ gulp.task(

gulp.task("unitTest", function () {
return gulp.src(paths.mochaTests, { read: false }).pipe(
$.mocha({
mocha({
reporter: "spec",
slow: 500,
timeout: 5000,
Expand Down
Loading

0 comments on commit cca8c6b

Please sign in to comment.