From 2aafaad72d1737eae98c4de9cbe275c1988ec4ae Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sat, 27 May 2017 21:38:00 +0100 Subject: [PATCH] Fix wrong path expansion in end-to-end test (#2388) * Update e2e-kitchensink.sh * Try again (differently) --- tasks/e2e-kitchensink.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/e2e-kitchensink.sh b/tasks/e2e-kitchensink.sh index 9d60d6e29..4506066cc 100755 --- a/tasks/e2e-kitchensink.sh +++ b/tasks/e2e-kitchensink.sh @@ -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 @@ -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`