Commit 6c6dcde7 authored by Augusto Mauch's avatar Augusto Mauch
Browse files

Fixes BUG-46140: parameters can be passed to npm test and npm coverage

Now all parameters are forwarded from run-tests to jest.

Both positional parameters and named parameters are supported. Remember that in order to pass named
parameters to npm test they must be included after -- [1]

Tests done:
npm test (executes all tests)
npm test modules/org.openbravo.client.application/web-test/ob-utilities-date.test.js (executes single test)
npm coverage modules/org.openbravo.client.application/web-test/ob-utilities-date.test.js (executes coverage for single test)

parent 9383e78b
......@@ -18,8 +18,8 @@
if [ -d "$CORE_2_PATH" ]; then
jest $@
echo "org.openbravo.core2 not installed, ignoring web-jspack tests"
jest --testPathIgnorePatterns=web-jspack
jest $@ --testPathIgnorePatterns=web-jspack
......@@ -9,7 +9,7 @@
"scripts": {
"postinstall": "lerna bootstrap --no-ci --hoist; modules/org.openbravo.client.kernel/eslint-airbnb/copy-config",
"test": "$npm_package_config_test",
"coverage": "jest --coverage",
"coverage": "$npm_package_config_test --coverage",
"jslint": "eslint --max-warnings 0",
"jsformat": "prettier"
......@@ -60,4 +60,4 @@
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment