#!/usr/bin/env bash
# Run the UI's tests with line coverage (c8, mapped back to the ClojureScript); the report goes
# to target/coverage/ui. Needs Node and a JDK, like script/ui-test.
set -euo pipefail
cd "$(dirname "$0")/../ui"

[[ -d node_modules ]] || npm ci
exec npm run coverage
