Skip to content

Commit

Permalink
Added TEST environment variable to pass regex to jest -t
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Dec 9, 2018
1 parent e49f237 commit 123908a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@
"test:run": "npm run --silent clean:screenshots && npm run --silent _puppeteer -- node_modules/.bin/lerna exec --concurrency 1 --no-bail ${PACKAGE:+--scope=@jpmorganchase/${PACKAGE}} -- yarn --silent test:run",
"test:quietrun:jest": "output=$(jest --color --silent 2>&1); ret=$?; echo \"${output}\"; exit $ret",
"test:quietrun": "yarn --silent _puppeteer yarn --silent test:quietrun:jest",
"test:quickrun": "yarn --silent clean:screenshots && yarn --silent _puppeteer yarn --silent jest --color --silent 2>&1",
"quicktest": "npm-run-all --silent lint test:build test:quickrun",
"test": "npm-run-all --silent lint test:build test:run",
"quicktest": "yarn --silent test:build && yarn --silent clean:screenshots && yarn --silent _puppeteer yarn --silent jest --color --silent ${TEST:+-t ${TEST}} 2>&1",
"test": "npm-run-all --silent test:build test:run",
"clean": "find obj -mindepth 1 -delete && lerna run clean ${PACKAGE:+--scope=@jpmorganchase/${PACKAGE}} --stream",
"preclean:screenshots": "lerna exec -- mkdir -p screenshots",
"clean:screenshots": "lerna run clean:screenshots ${PACKAGE:+--scope=@jpmorganchase/${PACKAGE}}",
Expand Down

0 comments on commit 123908a

Please sign in to comment.