Skip to content

Commit e83cc13

Browse files
tharakawjthongdong7
authored andcommitted
Link local react-error-overlay package in kitchensink test
1 parent ee3ee3c commit e83cc13

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tasks/e2e-kitchensink.sh

+6
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ cd "$temp_app_path/test-kitchensink"
165165

166166
# Link to our preset
167167
npm link "$root_path"/packages/babel-preset-react-app
168+
# Link to error overlay package because now it's a dependency
169+
# of react-dev-utils and not react-scripts
170+
npm link "$root_path"/packages/react-error-overlay
168171

169172
# Link to test module
170173
npm link "$temp_module_path/node_modules/test-integrity"
@@ -220,13 +223,16 @@ E2E_FILE=./build/index.html \
220223

221224
# Unlink our preset
222225
npm unlink "$root_path"/packages/babel-preset-react-app
226+
# Unlink error overlay
227+
npm unlink "$root_path"/packages/react-error-overlay
223228

224229
# Eject...
225230
echo yes | npm run eject
226231

227232
# ...but still link to the local packages
228233
npm link "$root_path"/packages/babel-preset-react-app
229234
npm link "$root_path"/packages/eslint-config-react-app
235+
npm link "$root_path"/packages/react-error-overlay
230236
npm link "$root_path"/packages/react-dev-utils
231237
npm link "$root_path"/packages/react-scripts
232238

0 commit comments

Comments
 (0)