diff --git a/uk.co.compucorp.civicrm.hrcore/gulp/tasks/requirejs.js b/uk.co.compucorp.civicrm.hrcore/gulp/tasks/requirejs.js index deb1f1e4fd9..b9962f6f1d1 100644 --- a/uk.co.compucorp.civicrm.hrcore/gulp/tasks/requirejs.js +++ b/uk.co.compucorp.civicrm.hrcore/gulp/tasks/requirejs.js @@ -30,7 +30,7 @@ module.exports = [ gulp.watch(watchPatterns, gulp.parallel('requirejs')).on('change', function (file) { if (utils.canCurrentExtensionRun('test')) { try { - test.for(file.path); + test.for(file); } catch (ex) { test.all(); } diff --git a/uk.co.compucorp.civicrm.hrcore/gulp/tasks/test.js b/uk.co.compucorp.civicrm.hrcore/gulp/tasks/test.js index d46a24069d7..a15d8fbd935 100644 --- a/uk.co.compucorp.civicrm.hrcore/gulp/tasks/test.js +++ b/uk.co.compucorp.civicrm.hrcore/gulp/tasks/test.js @@ -35,7 +35,7 @@ module.exports = [ ], 'test'); gulp.watch(watchPatterns).on('change', function (file) { - test.single(file.path); + test.single(file); }); cb(); } else {