We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 124caa5 commit bc1a01fCopy full SHA for bc1a01f
tasks/e2e-kitchensink.sh
@@ -158,6 +158,16 @@ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
158
NODE_ENV=test \
159
npm test -- --no-cache --testPathPattern="/src/"
160
161
+# Catch when no tests are detected
162
+testsList=$(REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
163
+ CI=true \
164
+ NODE_PATH=src \
165
+ npm test -- --no-cache --testPathPattern="/src/" --listTests)
166
+
167
+if [[ ${testsList} =~ "[]" ]]; then
168
+ exit 1
169
+fi
170
171
# Test "development" environment
172
tmp_server_log=`mktemp`
173
PORT=3001 \
0 commit comments