From 359b4a30ca5d7004a81926c4991991b615cc769d Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 1 Jul 2020 16:18:39 -0400 Subject: [PATCH] test: run tests with --runInBand by default This ensures transition tests do not randomly fail due to CPU load --- .circleci/config.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 16114f451ec..de7e22aa312 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -34,7 +34,7 @@ jobs: - *install_deps - *save_cache - run: yarn ls-lint - - run: yarn test --ci --runInBand + - run: yarn test --ci test-dts: <<: *defaults diff --git a/package.json b/package.json index 09327943e2f..ab9f2ac3e9b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "lint": "eslint --ext .ts packages/*/src/**", "format": "prettier --write --parser typescript \"packages/**/*.ts?(x)\"", "ls-lint": "ls-lint", - "test": "node scripts/build.js vue -f global -d && jest", + "test": "node scripts/build.js vue -f global -d && jest --runInBand", "test-dts": "node scripts/build.js shared reactivity runtime-core runtime-dom -dt -f esm-bundler && yarn test-dts-only", "test-dts-only": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.build.json", "release": "node scripts/release.js",