diff --git a/gulpfile.js b/gulpfile.js
index 7651f6cb0..6558a6618 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -1502,3 +1502,6 @@ gulp.task('externaltest', function (done) {
                 { stdio: 'inherit', });
   done();
 });
+
+gulp.task('npm-test', gulp.series(gulp.parallel('lint', 'externaltest'),
+                                  'unittestcli'));
diff --git a/package.json b/package.json
index c46b89fa9..06fe30cb4 100644
--- a/package.json
+++ b/package.json
@@ -54,7 +54,7 @@
     "yargs": "^11.1.1"
   },
   "scripts": {
-    "test": "env SKIP_BABEL=true gulp lint unittestcli externaltest"
+    "test": "env SKIP_BABEL=true gulp npm-test"
   },
   "repository": {
     "type": "git",