From 1f58e0111d31ce90fa58a26d6d007e227edc07d0 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Mon, 14 May 2018 16:03:57 -0700 Subject: [PATCH] Skip cross-implementation tests for Node<6 --- packages/grpc-protobufjs/package.json | 5 ++++- test/gulpfile.js | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/grpc-protobufjs/package.json b/packages/grpc-protobufjs/package.json index 1ed26975..8890edb8 100644 --- a/packages/grpc-protobufjs/package.json +++ b/packages/grpc-protobufjs/package.json @@ -1,6 +1,6 @@ { "name": "@grpc/proto-loader", - "version": "0.1.0", + "version": "0.2.0", "author": "Google Inc.", "contributors": [ { @@ -47,5 +47,8 @@ "clang-format": "^1.2.2", "gts": "^0.5.3", "typescript": "~2.7.2" + }, + "engines": { + "node": ">=6" } } diff --git a/test/gulpfile.js b/test/gulpfile.js index 4c8cf64c..2aa1c9c2 100644 --- a/test/gulpfile.js +++ b/test/gulpfile.js @@ -39,6 +39,10 @@ gulp.task('clean.all', 'Delete all files created by tasks', () => {}); gulp.task('test', 'Run API-level tests', () => { // run mocha tests matching a glob with a pre-required fixture, // returning the associated gulp stream + if (!semver.satisfies(process.version, '>=9.4')) { + console.log(`Skipping cross-implementation tests for Node ${process.version}`); + return; + } const apiTestGlob = `${apiTestDir}/*.js`; const runTestsWithFixture = (server, client) => new Promise((resolve, reject) => { const fixture = `${server}_${client}`;