#!/usr/bin/env bash
set -euo pipefail

bright_green='\u001b[32;1m'
reset_color='\033[0m'

yarn unit --coverage
# remove tokens from report
rm -r coverage/lcov-report/src/tokens
aws s3 sync ./coverage/lcov-report/ s3://zoox-web/puffin/test-coverage/unit-tests

echo -e "${bright_green}
  View report on http://puffin.web.zooxlabs.com/test-coverage/unit-tests/index.html
  ${reset_color}"
