mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-30 17:27:44 +03:00
Modify test scripts
This commit is contained in:
@@ -1,21 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo '
|
||||
- run build
|
||||
'
|
||||
npm run build || exit 1
|
||||
|
||||
echo '
|
||||
- lint js code
|
||||
'
|
||||
jshint src && jshint script || exit 1
|
||||
npm run test:jshint || exit 1
|
||||
|
||||
echo '
|
||||
- test using mocha
|
||||
'
|
||||
mocha -R list test/mocha*js || exit 1
|
||||
npm run test:mocha || exit 1
|
||||
|
||||
echo '
|
||||
- test using playwright
|
||||
'
|
||||
npx playwright test || exit 1
|
||||
npm run test:playwright || exit 1
|
||||
|
||||
echo '
|
||||
- lint lockfile
|
||||
'
|
||||
npx lockfile-lint -p package-lock.json || exit 1
|
||||
npm run test:lockfile-lint || exit 1
|
Reference in New Issue
Block a user