mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
Revert "Catch "No tests found" during CI" (#2390)
* Revert "Fix wrong path expansion in end-to-end test (#2388)" This reverts commit2aafaad72d. * Revert "Suggest just "yarn build" (#2385)" This reverts commit70bf12505c. * Revert "Catch "No tests found" during CI (#2387)" This reverts commit5317b3f910.
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user