scroll/tools/tsx-coverage.sh
2025-01-23 15:57:00 -05:00

12 lines
439 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
PARENT_DIR="$(dirname "$(realpath "$0")")"
TSX="$(realpath "${PARENT_DIR}/../node_modules/.bin/tsx")"
"${TSX}" --test --experimental-test-coverage \
--test-reporter=dot \
--test-reporter-destination=stdout \
--test-reporter=lcov \
--test-reporter-destination=coverage/raw/tsx.lcov './src/common/all_test.ts'
genhtml --ignore-errors inconsistent,inconsistent -o coverage/tsx coverage/raw/tsx.lcov