mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-10-01 01:37:43 +03:00
Create build+test scripts
This commit is contained in:
21
script/test-all.sh
Executable file
21
script/test-all.sh
Executable 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
|
Reference in New Issue
Block a user