Closed sherif2011 closed 5 years ago
Never mind. I think i better off read a bit in loopback testlab and supertest. Sorry for send it too soon.
Never mind. I think i better off read a bit in loopback testlab and supertest. Sorry for send it too soon.
Hello,
I don't have experience with testing, but I am seeing how loopback4-starter has a good example for automated testing using mocha. I would like to start testing my end points but am wondering how to pass tokens? I am seeing some examples here https://www.npmjs.com/package/@loopback/testlab#createrestappclient but nothing mentions passing Authorization: in requests header. Do you mind provide me with any references, links or thoughts to get myself started?
Thanks, Sherif