Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 5c367ab

Browse files
integrationTests: minimise test logs (#692)
1 parent 79bb5f6 commit 5c367ab

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

integrationTests/integration-test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ describe('Integration Tests', () => {
2424
cwd: tmpDir,
2525
});
2626

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

30-
const cwd = path.join(tmpDir, 'ts');
31-
exec('npm install --silent', { cwd });
30+
const cwd = path.join(tmpDir, projectName);
31+
exec('npm install --quiet', { cwd });
3232
exec('npm test', { cwd });
33+
}
34+
35+
it('Should compile with all supported TS versions', () => {
36+
testOnNodeProject('ts');
3337
}).timeout(40000);
3438

3539
it('Should work on all supported node versions', () => {
36-
exec(`cp -R ${path.join(__dirname, 'node')} ${tmpDir}`);
37-
38-
const cwd = path.join(tmpDir, 'node');
39-
exec('npm install', { cwd });
40-
exec('npm test', { cwd });
40+
testOnNodeProject('node');
4141
}).timeout(40000);
4242
});

integrationTests/node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"private": true,
23
"scripts": {
34
"test": "node test.js"
45
},

integrationTests/ts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"private": true,
23
"scripts": {
34
"test": "node test.js"
45
},

0 commit comments

Comments
 (0)