File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -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