Skip to content
  • Augusto Mauch's avatar
    Fixes BUG-46140: parameters can be passed to npm test and npm coverage · 6c6dcde7
    Augusto Mauch authored
    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)
    
    [1] https://jestjs.io/docs/cli/#using-with-npm-scripts
    6c6dcde7