Commit 2aafaad7 authored by Dan Abramov's avatar Dan Abramov Committed by GitHub
Browse files

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

* Update e2e-kitchensink.sh

* Try again (differently)
parent 70bf1250
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 3 additions and 3 deletions
+3 -3
...@@ -156,13 +156,13 @@ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \ ...@@ -156,13 +156,13 @@ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true \ CI=true \
NODE_PATH=src \ NODE_PATH=src \
NODE_ENV=test \ NODE_ENV=test \
npm test -- --no-cache --testPathPattern="/src/" npm test -- --no-cache --testPathPattern=src
# Catch when no tests are detected # Catch when no tests are detected
testsList=$(REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \ testsList=$(REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true \ CI=true \
NODE_PATH=src \ NODE_PATH=src \
npm test -- --no-cache --testPathPattern="/src/" --listTests) npm test -- --no-cache --testPathPattern=src --listTests)
if [[ ${testsList} =~ "[]" ]]; then if [[ ${testsList} =~ "[]" ]]; then
exit 1 exit 1
...@@ -230,7 +230,7 @@ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \ ...@@ -230,7 +230,7 @@ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true \ CI=true \
NODE_PATH=src \ NODE_PATH=src \
NODE_ENV=test \ NODE_ENV=test \
npm test -- --no-cache --testPathPattern='/src/' npm test -- --no-cache --testPathPattern=src
# Test "development" environment # Test "development" environment
tmp_server_log=`mktemp` tmp_server_log=`mktemp`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment