build: add circleci target to restrict max jest workers

Signed-off-by: Chris Goller <goller@gmail.com>
pull/16274/head
Chris Goller 2019-12-18 13:18:03 -06:00
parent ec4fed37b1
commit fe0aea0542
No known key found for this signature in database
GPG Key ID: E83D60D0C2EC67F2
2 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,7 @@ jobs:
set +e
cd ui
TESTFILES=$(circleci tests glob "src/**/*.test.ts*" | circleci tests split --split-by=timings)
yarn test:ci $TESTFILES
yarn test:circleci $TESTFILES
- run: make chronograf_lint
- store_test_results:
path: coverage

View File

@ -33,6 +33,7 @@
"test:ju:report": "junit-viewer --results=junit-results --save-file=cypress/site/junit-report.html",
"test:ju:clean": "rm junit-results/*.xml",
"test:ju:all": "yarn test:ju:clean && yarn test:junit; yarn test:ju:report;",
"test:circleci": "yarn run test:ci --maxWorkers=2",
"test:ci": "JEST_JUNIT_OUTPUT_DIR=\"./coverage\" jest --ci --coverage",
"lint": "yarn tsc && yarn prettier && yarn eslint",
"eslint": "eslint '{src,cypress}/**/*.{ts,tsx}'",