mirror of https://github.com/grpc/grpc-node.git
				
				
				
			Skip cross-implementation tests for Node<6
This commit is contained in:
		
							parent
							
								
									fc51f0ea48
								
							
						
					
					
						commit
						1f58e0111d
					
				|  | @ -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" | ||||
|   } | ||||
| } | ||||
|  |  | |||
|  | @ -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}`; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue