This repository was archived by the owner on Jan 26, 2019. It is now read-only.
File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,17 @@ cache:
12
12
install : true
13
13
script :
14
14
- ' if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi'
15
- - ' if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi'
16
15
- ' if [ $TEST_SUITE = "kitchensink" ]; then tasks/e2e-kitchensink.sh; fi'
17
16
- ' if [ $TEST_SUITE = "old-node" ]; then tasks/e2e-old-node.sh; fi'
17
+ # Disabled for the moment, since it requires additional work to be done.
18
+ # - 'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi'
18
19
env :
19
20
matrix :
20
21
- TEST_SUITE=simple
21
- - TEST_SUITE=installs
22
22
- TEST_SUITE=kitchensink
23
+ # See comment above
24
+ # - TEST_SUITE=installs
23
25
matrix :
24
26
include :
25
- - node_js : 0.10
26
- env : TEST_SUITE=old-node
27
27
- node_js : 6
28
28
env : TEST_SUITE=kitchensink
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ git clean -df
149
149
150
150
# Install the app in a temporary location
151
151
cd $temp_app_path
152
- npx create-react-app test-app
152
+ npx create-react-app test-app --scripts-version=react-scripts-ts
153
153
154
154
# TODO: verify we installed prerelease
155
155
@@ -211,19 +211,19 @@ function verify_module_scope {
211
211
# Create stub json file
212
212
echo " {}" >> sample.json
213
213
214
- # Save App.js , we're going to modify it
215
- cp src/App.js src/App.js .bak
214
+ # Save App.tsx , we're going to modify it
215
+ cp src/App.tsx src/App.tsx .bak
216
216
217
217
# Add an out of scope import
218
- echo " import sampleJson from '../sample'" | cat - src/App.js > src/App.js .temp && mv src/App.js .temp src/App.js
218
+ echo " import sampleJson from '../sample'" | cat - src/App.tsx > src/App.tsx .temp && mv src/App.tsx .temp src/App.tsx
219
219
220
220
# Make sure the build fails
221
221
yarn build; test $? -eq 1 || exit 1
222
222
# TODO: check for error message
223
223
224
- # Restore App.js
225
- rm src/App.js
226
- mv src/App.js .bak src/App.js
224
+ # Restore App.tsx
225
+ rm src/App.tsx
226
+ mv src/App.tsx .bak src/App.tsx
227
227
}
228
228
229
229
# Enter the app directory
You can’t perform that action at this time.
0 commit comments