2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +00:00
books/scripts/test.sh
18alantom 40f2aa8444 refactor: move test to sh script
- this allows passing globs as args
2022-11-07 13:28:35 +05:30

8 lines
165 B
Bash
Executable File

TEST_PATH=$@
if [ $# -eq 0 ]
then
TEST_PATH=./**/tests/**/*.spec.ts
fi
./scripts/runner.sh ./node_modules/.bin/tape $TEST_PATH | ./node_modules/.bin/tap-spec