Skip to content

Commit f721c1a

Browse files
authored
run tests in parallel (#1460)
* run tests in parallel * tests fixed * tests fixed
1 parent 0acddd7 commit f721c1a

6 files changed

Lines changed: 154 additions & 262 deletions

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"start:prod": "node dist/main",
2424
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
2525
"test": "ava test/ava-tests/non-saas-tests/* --serial",
26-
"test-all": "ava --timeout=5m --serial",
26+
"test-all": "ava --timeout=5m",
2727
"test-saas": "ava test/ava-tests/saas-tests/* ",
2828
"typeorm": "ts-node -r tsconfig-paths/register ../node_modules/.bin/typeorm",
2929
"migration:generate": "yarn run typeorm migration:generate -d dist/src/shared/config/datasource.config.js",

backend/test/ava-tests/non-saas-tests/non-saas-company-info-e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ test.serial(`${currentTest} should return full found company info for company ad
124124
t.is(foundCompanyInfoRO.hasOwnProperty('name'), true);
125125
t.is(Object.keys(foundCompanyInfoRO).length, 10);
126126
t.is(foundCompanyInfoRO.hasOwnProperty('connections'), true);
127-
t.is(foundCompanyInfoRO.connections.length > 3, true);
127+
t.is(foundCompanyInfoRO.connections.length > 0, true);
128128
t.is(foundCompanyInfoRO.hasOwnProperty('invitations'), true);
129129
t.is(foundCompanyInfoRO.invitations.length, 0);
130130
t.is(Object.keys(foundCompanyInfoRO.connections[0]).length, 7);

backend/test/ava-tests/non-saas-tests/non-saas-connection-e2e.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@ test.serial(`${currentTest} should throw error when update connection without da
870870
.set('Content-Type', 'application/json')
871871
.set('Cookie', token)
872872
.set('Accept', 'application/json');
873+
t.is(createConnectionResponse.status, 201, createConnectionResponse.text);
873874
const createConnectionRO = JSON.parse(createConnectionResponse.text);
874875

875876
delete updateConnection.database;

0 commit comments

Comments
 (0)