Files
zkldi_Tachi/database-seeds/scripts/run-tests.sh
T
Christopher Cooper edc844e7d3 allow run-tests.sh to be called from other directories
Also, just use tee non-appending mode instead of deleting the file.
2022-04-30 20:02:40 -07:00

10 lines
257 B
Bash
Executable File

#!/bin/bash
cd "$(dirname "$0")"
# Output stderr and stdout to the terminal, but only save stderr to a file
# Isn't bash wonderful?
ts-node test/collections.test.ts 2> >(tee failed-tests.log >&2)
ts-node test/id.test.ts 2> >(tee -a failed-tests.log >&2)