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:
parent
eba755dd11
commit
40f2aa8444
@ -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
8
scripts/test.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user