Skip to content

Commit 2aafaad

Browse files
authored
Fix wrong path expansion in end-to-end test (#2388)
* Update e2e-kitchensink.sh * Try again (differently)
1 parent 70bf125 commit 2aafaad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/e2e-kitchensink.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
156156
CI=true \
157157
NODE_PATH=src \
158158
NODE_ENV=test \
159-
npm test -- --no-cache --testPathPattern="/src/"
159+
npm test -- --no-cache --testPathPattern=src
160160

161161
# Catch when no tests are detected
162162
testsList=$(REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
163163
CI=true \
164164
NODE_PATH=src \
165-
npm test -- --no-cache --testPathPattern="/src/" --listTests)
165+
npm test -- --no-cache --testPathPattern=src --listTests)
166166

167167
if [[ ${testsList} =~ "[]" ]]; then
168168
exit 1
@@ -230,7 +230,7 @@ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
230230
CI=true \
231231
NODE_PATH=src \
232232
NODE_ENV=test \
233-
npm test -- --no-cache --testPathPattern='/src/'
233+
npm test -- --no-cache --testPathPattern=src
234234

235235
# Test "development" environment
236236
tmp_server_log=`mktemp`

0 commit comments

Comments
 (0)