Commit 1f40f05 1 parent 64ff23d commit 1f40f05 Copy full SHA for 1f40f05
File tree 2 files changed +7
-12
lines changed
2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,11 @@ cd "$temp_app_path"
112
112
npx create-react-app test-app-dist-tag --scripts-version=@latest
113
113
cd test-app-dist-tag
114
114
115
- # Check corresponding scripts version is installed and no TypeScript is present.
115
+ # Check corresponding scripts version is installed and no TypeScript or yarn is present by default
116
116
exists node_modules/react-scripts
117
117
! exists node_modules/typescript
118
118
! exists src/index.tsx
119
+ ! exists yarn.lock
119
120
exists src/index.js
120
121
checkDependencies
121
122
@@ -133,16 +134,16 @@ grep '"version": "1.0.17"' node_modules/react-scripts/package.json
133
134
checkDependencies
134
135
135
136
# ******************************************************************************
136
- # Test --use-npm flag
137
+ # Test --use-yarn flag
137
138
# ******************************************************************************
138
139
139
140
cd " $temp_app_path "
140
- npx create-react-app test-use-npm -flag --use-npm --scripts-version=1.0.17
141
- cd test-use-npm -flag
141
+ npx create-react-app test-use-yarn -flag --use-yarn --scripts-version=1.0.17
142
+ cd test-use-yarn -flag
142
143
143
144
# Check corresponding scripts version is installed.
144
145
exists node_modules/react-scripts
145
- [ ! -e " yarn.lock" ] && echo " yarn.lock correctly does not exist "
146
+ exists yarn.lock
146
147
grep ' "version": "1.0.17"' node_modules/react-scripts/package.json
147
148
checkDependencies
148
149
@@ -277,7 +278,7 @@ npm start -- --smoke-test
277
278
# Test when PnP is enabled
278
279
# ******************************************************************************
279
280
cd " $temp_app_path "
280
- npx create-react-app test-app-pnp --use-pnp
281
+ npx create-react-app test-app-pnp --use-yarn --use- pnp
281
282
cd test-app-pnp
282
283
! exists node_modules
283
284
exists .pnp.js
Original file line number Diff line number Diff line change @@ -110,9 +110,6 @@ cd "$temp_app_path/test-kitchensink"
110
110
# In kitchensink, we want to test all transforms
111
111
export BROWSERSLIST=' ie 9'
112
112
113
- # Link to test module
114
- npm link " $temp_module_path /node_modules/test-integrity"
115
-
116
113
# ******************************************************************************
117
114
# Finally, let's check that everything still works after ejecting.
118
115
# ******************************************************************************
@@ -124,9 +121,6 @@ echo yes | npm run eject
124
121
rm yarn.lock
125
122
yarn add @babel/plugin-transform-react-jsx-source @babel/plugin-syntax-jsx @babel/plugin-transform-react-jsx @babel/plugin-transform-react-jsx-self
126
123
127
- # Link to test module
128
- npm link " $temp_module_path /node_modules/test-integrity"
129
-
130
124
# Test the build
131
125
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
132
126
NODE_PATH=src \
You can’t perform that action at this time.
0 commit comments