Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Fix wrong path expansion in end-to-end test (#2388)
Browse files Browse the repository at this point in the history
* Update e2e-kitchensink.sh

* Try again (differently)
  • Loading branch information
gaearon authored and wmonk committed Aug 7, 2017
1 parent c16a178 commit 4a18386
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/e2e-kitchensink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true \
NODE_PATH=src \
NODE_ENV=test \
npm test -- --no-cache --testPathPattern="/src/"
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)
npm test -- --no-cache --testPathPattern=src --listTests)

if [[ ${testsList} =~ "[]" ]]; then
exit 1
Expand Down Expand Up @@ -230,7 +230,7 @@ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true \
NODE_PATH=src \
NODE_ENV=test \
npm test -- --no-cache --testPathPattern='/src/'
npm test -- --no-cache --testPathPattern=src

# Test "development" environment
tmp_server_log=`mktemp`
Expand Down

0 comments on commit 4a18386

Please sign in to comment.