add running tests into the build process

This commit is contained in:
zadam 2020-08-14 22:30:01 +02:00
parent c2789bf355
commit b815e10ff3
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,9 @@
#!/usr/bin/env bash
echo "Running tests"
npm run test-all || { echo 'unit tests failed' ; exit 1; }
echo "Deleting existing builds"
rm -rf dist/*

View file

@ -20,7 +20,8 @@
"build-docs": "npm run build-backend-docs && npm run build-frontend-docs",
"webpack": "npx webpack -c webpack-desktop.config.js && npx webpack -c webpack-mobile.config.js && npx webpack -c webpack-setup.config.js",
"test": "jasmine",
"test-es6": "node -r esm spec-es6/attribute_parser.spec.js "
"test-es6": "node -r esm spec-es6/attribute_parser.spec.js ",
"test-all": "npm run test && npm run test-es6"
},
"dependencies": {
"async-mutex": "0.2.4",