avadev/AvaTax-REST-V2-JS-SDK

Integration Test: Upload and download a batch

justinsoliz opened this issue · 3 comments

Setup Jest integration test to upload and download a batch per the following swagger spec:
https://sandbox-rest.avatax.com/swagger/ui/index.html#/Batches

Hi @justinsoliz
To set up testing environment in the JS SDK

  • run npm install in your terminal, to install all required packages including Jest
  • store your credentials in the forms of
    SANDBOX_USERNAME and SANDBOX_PASSWORD
    they must be named this way in order for the test script to fetch correctly, but they can be either clientId/licenseKey pair or username/password pair.
  • run the test suite by npm run test this will execute jest

Please let me know if there does not solve your issue,
Han

image

@han8909227 thanks for the pointers, I'll give it a try!

Batch integration tests are live and passing with the 18.9 release