Skip to content

Commit 2d7bc65

Browse files
committed
aeldar: fix tests
1 parent 37957af commit 2d7bc65

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tasks/e2e-simple.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,19 +211,19 @@ function verify_module_scope {
211211
# Create stub json file
212212
echo "{}" >> sample.json
213213

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
216216

217217
# 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
219219

220220
# Make sure the build fails
221221
yarn build; test $? -eq 1 || exit 1
222222
# TODO: check for error message
223223

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
227227
}
228228

229229
# Enter the app directory

0 commit comments

Comments
 (0)