Skip to content

Commit

Permalink
integrationTests: minimise test logs (graphql#2753)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored Aug 24, 2020
1 parent 53c5533 commit 94dc334
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
18 changes: 9 additions & 9 deletions integrationTests/integration-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ describe('Integration Tests', () => {
const distDir = path.resolve('./npmDist');
exec(`npm pack ${distDir} && cp graphql-*.tgz graphql.tgz`, { cwd: tmpDir });

it('Should compile with all supported TS versions', () => {
exec(`cp -R ${path.join(__dirname, 'ts')} ${tmpDir}`);
function testOnNodeProject(projectName) {
exec(`cp -R ${path.join(__dirname, projectName)} ${tmpDir}`);

const cwd = path.join(tmpDir, 'ts');
exec('npm install --silent', { cwd });
const cwd = path.join(tmpDir, projectName);
exec('npm install --quiet', { cwd });
exec('npm test', { cwd });
}

it('Should compile with all supported TS versions', () => {
testOnNodeProject('ts');
}).timeout(40000);

it('Should work on all supported node versions', () => {
exec(`cp -R ${path.join(__dirname, 'node')} ${tmpDir}`);

const cwd = path.join(tmpDir, 'node');
exec('npm install', { cwd });
exec('npm test', { cwd });
testOnNodeProject('node');
}).timeout(40000);
});
1 change: 1 addition & 0 deletions integrationTests/node/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"private": true,
"scripts": {
"test": "node test.js"
},
Expand Down
1 change: 1 addition & 0 deletions integrationTests/ts/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"private": true,
"scripts": {
"test": "node test.js"
},
Expand Down

0 comments on commit 94dc334

Please sign in to comment.