@@ -22,8 +22,6 @@ temp_app_path=`mktemp -d 2>/dev/null || mktemp -d -t 'temp_app_path'`
22
22
function cleanup {
23
23
echo ' Cleaning up.'
24
24
cd $root_path
25
- # Uncomment when snapshot testing is enabled by default:
26
- # rm ./packages/react-scripts/template/src/__snapshots__/App.test.js.snap
27
25
rm -rf $temp_cli_path $temp_app_path
28
26
}
29
27
@@ -60,14 +58,6 @@ root_path=$PWD
60
58
61
59
npm install
62
60
63
- # If the node version is < 4, the script should just give an error.
64
- if [ ` node --version | sed -e ' s/^v//' -e ' s/\..\+//g' ` -lt 4 ]
65
- then
66
- cd $temp_app_path
67
- err_output=` node " $root_path " /packages/create-react-app/index.js test-node-version 2>&1 > /dev/null || echo ' ' `
68
- [[ $err_output =~ You\ are\ running\ Node ]] && exit 0 || exit 1
69
- fi
70
-
71
61
if [ " $USE_YARN " = " yes" ]
72
62
then
73
63
# Install Yarn so that the test can use it to install packages.
@@ -93,9 +83,6 @@ cp package.json package.json.orig
93
83
# of those packages.
94
84
node $root_path /tasks/replace-own-deps.js
95
85
96
- # Remove .npmignore so the test template is added
97
- rm $root_path /packages/react-scripts/.npmignore
98
-
99
86
# Finally, pack react-scripts
100
87
scripts_path=$root_path /packages/react-scripts/` npm pack`
101
88
@@ -153,13 +140,6 @@ E2E_FILE=./build/index.html \
153
140
NODE_PATH=src \
154
141
node_modules/.bin/mocha --require babel-register --require babel-polyfill integration/* .test.js
155
142
156
- # Uncomment when snapshot testing is enabled by default:
157
- # test -e src/__snapshots__/App.test.js.snap
158
-
159
- # Test the server
160
- REACT_APP_SHELL_ENV_MESSAGE=fromtheshell NODE_PATH=src npm start -- --smoke-test
161
- REACT_APP_SHELL_ENV_MESSAGE=fromtheshell HTTPS=true NODE_PATH=src npm start -- --smoke-test
162
-
163
143
# ******************************************************************************
164
144
# Finally, let's check that everything still works after ejecting.
165
145
# ******************************************************************************
@@ -208,11 +188,5 @@ E2E_FILE=./build/index.html \
208
188
NODE_PATH=src \
209
189
node_modules/.bin/mocha --require babel-register --require babel-polyfill integration/* .test.js
210
190
211
- # Uncomment when snapshot testing is enabled by default:
212
- # test -e src/__snapshots__/App.test.js.snap
213
-
214
- # Test the server
215
- REACT_APP_SHELL_ENV_MESSAGE=fromtheshell NODE_PATH=src npm start -- --smoke-test
216
-
217
191
# Cleanup
218
192
cleanup
0 commit comments