Create build+test scripts

This commit is contained in:
Faisal Salman
2023-04-14 23:43:09 +07:00
parent 35c2b91534
commit 5a26ac146e
5 changed files with 81 additions and 35 deletions

21
script/test-all.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
echo '
- lint js code
'
jshint src && jshint script || exit 1
echo '
- test using mocha
'
mocha -R list test/mocha*js || exit 1
echo '
- test using playwright
'
npx playwright test || exit 1
echo '
- lint lockfile
'
npx lockfile-lint -p package-lock.json || exit 1