mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
Fix wrong path expansion in end-to-end test (#2388)
* Update e2e-kitchensink.sh * Try again (differently)
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user