Skip to content

Commit 454f908

Browse files
committed
Add e2e test based on facebook#1537, but without specific filename
1 parent dac3209 commit 454f908

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tasks/e2e-installs.sh

+12
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,18 @@ if [ "$(ls -1 ./test-app-should-remain | wc -l | tr -d '[:space:]')" != "1" ]; t
145145
false
146146
fi
147147

148+
# ******************************************************************************
149+
# Test --scripts-version with a scoped fork tgz of react-scripts
150+
# ******************************************************************************
151+
152+
cd $temp_app_path
153+
curl "https://registry.npmjs.org/@enoah_netzach/react-scripts/-/react-scripts-0.9.0.tgz" -o enoah-scripts-0.9.0.tgz
154+
create_react_app --scripts-version=$temp_app_path/enoah-scripts-0.9.0.tgz test-app-scoped-fork-tgz
155+
cd test-app-scoped-fork
156+
157+
# Check corresponding scripts version is installed.
158+
exists node_modules/@enoah_netzach/react-scripts
159+
148160
# ******************************************************************************
149161
# Test nested folder path as the project name
150162
# ******************************************************************************

0 commit comments

Comments
 (0)