Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion presto-ui/bin/check_webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#
# 1. Validate that the generated files that have been checked in to the webapp folder are in sync
# with the source.
# 2. Make sure there are no type checker warnings reported by Flow
# 2. Make sure there are no type checker warnings reported by TypeScript
# 3. Run ESLint to check for code quality issues
# 4. Run Jest tests to ensure code functionality

set -euo pipefail

Expand Down Expand Up @@ -41,4 +43,11 @@ fi
if ! yarn --cwd ${WEBUI_ROOT}/ run lint --quiet; then
echo "ERROR: ESlint errors found"
exit 1
fi

# Fail on test failures only (coverage thresholds disabled for now)

if ! yarn --cwd ${WEBUI_ROOT}/ run test:ci; then
echo "ERROR: Tests failed"
exit 1
fi
6 changes: 6 additions & 0 deletions presto-ui/src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Test coverage
coverage/
*.lcov

# Jest
.jest-cache/
Loading
Loading