diff --git a/integrationTests/integration-test.js b/integrationTests/integration-test.js index a2fe883b26..8590cf5f38 100644 --- a/integrationTests/integration-test.js +++ b/integrationTests/integration-test.js @@ -28,22 +28,21 @@ describe('Integration Tests', () => { ); function testOnNodeProject(projectName) { - exec(`cp -R ${path.join(__dirname, projectName)} ${tmpDir}`); + const projectPath = path.join(__dirname, projectName); - const cwd = path.join(tmpDir, projectName); - exec('npm --quiet install', { cwd, stdio: 'inherit' }); - exec('npm --quiet test', { cwd, stdio: 'inherit' }); - } + const packageJSONPath = path.join(projectPath, 'package.json'); + const packageJSON = JSON.parse(fs.readFileSync(packageJSONPath, 'utf-8')); - it('Should compile with all supported TS versions', () => { - testOnNodeProject('ts'); - }).timeout(40000); + it(packageJSON.description, () => { + exec(`cp -R ${projectPath} ${tmpDir}`); - it('Should work on all supported node versions', () => { - testOnNodeProject('node'); - }).timeout(40000); + const cwd = path.join(tmpDir, projectName); + exec('npm --quiet install', { cwd, stdio: 'inherit' }); + exec('npm --quiet test', { cwd, stdio: 'inherit' }); + }).timeout(40000); + } - it('Should be compatible with Webpack', () => { - testOnNodeProject('webpack'); - }).timeout(40000); + testOnNodeProject('ts'); + testOnNodeProject('node'); + testOnNodeProject('webpack'); }); diff --git a/integrationTests/node/package.json b/integrationTests/node/package.json index 110060077b..c5f85cd833 100644 --- a/integrationTests/node/package.json +++ b/integrationTests/node/package.json @@ -1,5 +1,6 @@ { "private": true, + "description": "graphql-js should work on all supported node versions", "scripts": { "test": "node test.js" }, diff --git a/integrationTests/ts/package.json b/integrationTests/ts/package.json index 8b03677051..3e1a3e3380 100644 --- a/integrationTests/ts/package.json +++ b/integrationTests/ts/package.json @@ -1,5 +1,6 @@ { "private": true, + "description": "graphql-js should compile with all supported TS versions", "scripts": { "test": "node test.js" }, diff --git a/integrationTests/webpack/package.json b/integrationTests/webpack/package.json index dac5558ff4..aec7a21afb 100644 --- a/integrationTests/webpack/package.json +++ b/integrationTests/webpack/package.json @@ -1,5 +1,6 @@ { "private": true, + "description": "graphql-js should be compatible with Webpack", "scripts": { "test": "webpack && node test.js" },