mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-17 11:45:46 +08:00
Add checks for expected output to e2e test
This commit is contained in:
@@ -39,10 +39,18 @@ cd test-app
|
||||
# Test the build
|
||||
npm run build
|
||||
|
||||
# Check for expected output
|
||||
test -e build/*.html || exit 1
|
||||
test -e build/*.js || exit 1
|
||||
|
||||
# Eject and test the build
|
||||
echo yes | npm run eject
|
||||
npm run build
|
||||
|
||||
# Check for expected output
|
||||
test -e build/*.html || exit 1
|
||||
test -e build/*.js || exit 1
|
||||
|
||||
# Cleanup
|
||||
cd $initial_path
|
||||
rm -rf $temp_cli_path $temp_app_path
|
||||
|
||||
Reference in New Issue
Block a user