Skip to content

Commit

Permalink
Link local react-error-overlay package in kitchensink test
Browse files Browse the repository at this point in the history
  • Loading branch information
tharakawj authored and thongdong7 committed Sep 24, 2017
1 parent ee3ee3c commit e83cc13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/e2e-kitchensink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -220,13 +223,16 @@ 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

# ...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

Expand Down

0 comments on commit e83cc13

Please sign in to comment.