I’ve created a number of integration tests (using Jest) for my integration/app that require valid credentials for the tests to succeed.
What’s the recommend approach to perform the authentication? Maybe invoke the perfrom method of the authentication.js script in a before filter?
beforeAll(() => {
// TODO: get a new access token
// invoke authenticate.js?
});