From e83cc13e0ab82c91cfb9e2829fbefde967cdc23e Mon Sep 17 00:00:00 2001 From: Tharaka Wijebandara Date: Sat, 16 Sep 2017 12:22:13 +0530 Subject: [PATCH] Link local react-error-overlay package in kitchensink test --- tasks/e2e-kitchensink.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/e2e-kitchensink.sh b/tasks/e2e-kitchensink.sh index ebbac271e6e..8ef0bc23d31 100755 --- a/tasks/e2e-kitchensink.sh +++ b/tasks/e2e-kitchensink.sh @@ -165,6 +165,9 @@ cd "$temp_app_path/test-kitchensink" # Link to our preset npm link "$root_path"/packages/babel-preset-react-app +# Link to error overlay package because now it's a dependency +# of react-dev-utils and not react-scripts +npm link "$root_path"/packages/react-error-overlay # Link to test module npm link "$temp_module_path/node_modules/test-integrity" @@ -220,6 +223,8 @@ E2E_FILE=./build/index.html \ # Unlink our preset npm unlink "$root_path"/packages/babel-preset-react-app +# Unlink error overlay +npm unlink "$root_path"/packages/react-error-overlay # Eject... echo yes | npm run eject @@ -227,6 +232,7 @@ echo yes | npm run eject # ...but still link to the local packages npm link "$root_path"/packages/babel-preset-react-app npm link "$root_path"/packages/eslint-config-react-app +npm link "$root_path"/packages/react-error-overlay npm link "$root_path"/packages/react-dev-utils npm link "$root_path"/packages/react-scripts