File tree 1 file changed +10
-7
lines changed
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -159,12 +159,14 @@ cp .gitignore .gitignore.backup
159
159
echo "
160
160
/* @flow */
161
161
var wrong: string = 0;
162
- " >> src/App.js
163
- npm start -- --smoke-test || true
162
+ " > src/App.js
163
+ cat src/App.backup.js >> src/App.js
164
+ CI=true npm run build >> errors.log 2>> errors.log || true
165
+ cat errors.log | grep " This type is incompatible with"
164
166
test -e .flowconfig
165
167
test -d flow-typed
166
168
cat .gitignore | grep flow-typed
167
- rm src/App.js .gitignore
169
+ rm src/App.js .gitignore errors.log
168
170
cp src/App.backup.js src/App.js
169
171
cp .gitignore.backup .gitignore
170
172
rm src/App.backup.js .gitignore.backup .flowconfig
@@ -210,12 +212,13 @@ cp .gitignore .gitignore.backup
210
212
echo "
211
213
/* @flow */
212
214
var wrong: string = 0;
213
- " >> src/App.js
214
- npm start -- --smoke-test || true
215
- test -e .flowconfig
215
+ " > src/App.js
216
+ cat src/App.backup.js >> src/App.js
217
+ CI=true npm run build >> errors.log 2>> errors.log || true
218
+ cat errors.log | grep " This type is incompatible with"
216
219
test -d flow-typed
217
220
cat .gitignore | grep flow-typed
218
- rm src/App.js .gitignore
221
+ rm src/App.js .gitignore errors.log
219
222
cp src/App.backup.js src/App.js
220
223
cp .gitignore.backup .gitignore
221
224
rm src/App.backup.js .gitignore.backup .flowconfig
You can’t perform that action at this time.
0 commit comments