aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/gulpfile.js
blob: 898f84fe44d8808f19ad4adc097102a716309051 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var gulp = require("gulp");
var jest = require("jest");

// -------------- Run Jest Tests --------------

gulp.task("test", function() {
  return jest.runCLI({}, ".")
  .then((result) => {
    if (!result.results.success){
      console.error("Execution of js tests failed with status 1");
      process.exit(1);
    }
  });
});

// -------------- Default Task --------------

gulp.task("default", gulp.parallel(["test"]));