Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tasks/e2e-kitchensink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ temp_app_path=`mktemp -d 2>/dev/null || mktemp -d -t 'temp_app_path'`
function cleanup {
echo 'Cleaning up.'
cd $root_path
# Restore removed .npmignore
mv $root_path/packages/react-scripts/.npmignore.orig $root_path/packages/react-scripts/.npmignore
# Uncomment when snapshot testing is enabled by default:
# rm ./packages/react-scripts/template/src/__snapshots__/App.test.js.snap
rm -rf $temp_cli_path $temp_app_path
Expand Down Expand Up @@ -93,6 +95,9 @@ cp package.json package.json.orig
# of those packages.
node $root_path/tasks/replace-own-deps.js

# Save .npmignore becasue we're going to remove it
cp $root_path/packages/react-scripts/.npmignore $root_path/packages/react-scripts/.npmignore.orig

# Remove .npmignore so the test template is added
rm $root_path/packages/react-scripts/.npmignore

Expand Down