From d5787ee242754bd79f92ad24fec6319704dd960e Mon Sep 17 00:00:00 2001 From: Artur Tagisow Date: Tue, 21 May 2024 16:17:31 +0200 Subject: [PATCH] Collect coverage only from unit tests Because of turbo, unit tests and integration tests can run in different order. Before adding turbo, the test script was like "yarn test:unit && yarn test:integration". If both tests generated coverage, in the coverage folder there'd factually be the integration test coverage. But now that they run out of order, we don't know what's in there. Here I reverted to a state where coverage from unit tests is only reported, as you normally collect coverage from unit tests. --- packages/sdk/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 1d1d57a7b..79ab0632a 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -12,7 +12,7 @@ "build": "rimraf lib server && rollup -c", "test": "yarn test:unit && yarn test:integration", "test:unit": "jest ./unit -c ./jest.config.unit.ts --coverage", - "test:integration": "jest ./integration -c ./jest.config.integration.ts --runInBand --coverage", + "test:integration": "jest ./integration -c ./jest.config.integration.ts --runInBand", "lint": "eslint . --ext .ts,.js", "prepublish": "yarn build", "dev": "rimraf lib server && rollup -c -w"