Integration Test: Upload and download a batch
justinsoliz opened this issue · 3 comments
justinsoliz commented
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
han8909227 commented
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
andSANDBOX_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
justinsoliz commented
@han8909227 thanks for the pointers, I'll give it a try!
contygm commented
Batch integration tests are live and passing with the 18.9 release