Skip to content

Commit 6840450

Browse files
committed
add e2e test for —use-npm flag
1 parent 547ad01 commit 6840450

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tasks/e2e-installs.sh

+14
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,20 @@ exists node_modules/react-scripts
145145
grep '"version": "0.4.0"' node_modules/react-scripts/package.json
146146
checkDependencies
147147

148+
# ******************************************************************************
149+
# Test --use-npm flag
150+
# ******************************************************************************
151+
152+
cd "$temp_app_path"
153+
create_react_app --use-npm --scripts-version=0.4.0 test-use-npm-flag
154+
cd test-use-npm-flag
155+
156+
# Check corresponding scripts version is installed.
157+
exists node_modules/react-scripts
158+
[ ! -e "yarn.lock" ] && echo "yarn.lock correctly does not exist"
159+
grep '"version": "0.4.0"' node_modules/react-scripts/package.json
160+
checkDependencies
161+
148162
# ******************************************************************************
149163
# Test --scripts-version with a tarball url
150164
# ******************************************************************************

0 commit comments

Comments
 (0)