2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +00:00

refactor: move test to sh script

- this allows passing globs as args
This commit is contained in:
18alantom 2022-11-01 12:51:48 +05:30
parent eba755dd11
commit 40f2aa8444
2 changed files with 9 additions and 1 deletions

View File

@ -17,7 +17,7 @@
"electron:serve": "vue-cli-service electron:serve",
"script:translate": "scripts/runner.sh scripts/generateTranslations.ts",
"script:profile": "scripts/profile.sh",
"test": "scripts/runner.sh ./node_modules/.bin/tape ./**/tests/**/*.spec.ts | tap-spec"
"test": "scripts/test.sh"
},
"dependencies": {
"@popperjs/core": "^2.10.2",

8
scripts/test.sh Executable file
View File

@ -0,0 +1,8 @@
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