From 1d682b7f4e85c4e998ea1beefa7403914f8c55ec Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Sun, 26 Jan 2020 15:49:54 +0000 Subject: [PATCH] test: run jest in band on circle ci This prevents ts-jest to flood the memory, making it horrible slow and often failing without memory --- .circleci/config.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1c64f559ae..7171a9fa1c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,7 +35,7 @@ commands: steps: - run: name: Test - command: yarn test + command: yarn test-ci save-cache: steps: - save_cache: diff --git a/package.json b/package.json index bb77a9c11d..112852c4d2 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "publish": "lerna publish --conventional-commits", "reinstall": "yarn clean && yarn install", "start": "lerna run start --stream --parallel --include-filtered-dependencies", - "test": "jest && lerna run test --stream --parallel --include-filtered-dependencies" + "test": "jest && lerna run test --stream --parallel --include-filtered-dependencies", + "test-ci": "jest --runInBand && lerna run test --stream --parallel --include-filtered-dependencies" }, "commitlint": { "extends": [