Skip cross-implementation tests for Node<6

This commit is contained in:
murgatroid99 2018-05-14 16:03:57 -07:00
parent fc51f0ea48
commit 1f58e0111d
2 changed files with 8 additions and 1 deletions

View File

@ -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"
}
}

View File

@ -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}`;