Revert "Catch "No tests found" during CI" (#2390)

* Revert "Fix wrong path expansion in end-to-end test (#2388)"

This reverts commit 2aafaad72d.

* Revert "Suggest just "yarn build" (#2385)"

This reverts commit 70bf12505c.

* Revert "Catch "No tests found" during CI (#2387)"

This reverts commit 5317b3f910.
This commit is contained in:
Dan Abramov
2017-05-27 23:26:03 +01:00
committed by GitHub
parent 2aafaad72d
commit 3f342383c3

View File

@@ -158,16 +158,6 @@ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
NODE_ENV=test \
npm test -- --no-cache --testPathPattern=src
# Catch when no tests are detected
testsList=$(REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true \
NODE_PATH=src \
npm test -- --no-cache --testPathPattern=src --listTests)
if [[ ${testsList} =~ "[]" ]]; then
exit 1
fi
# Test "development" environment
tmp_server_log=`mktemp`
PORT=3001 \