getAdminAPIAgent = async (options = {}) => {
    const bootOptions = {};

    if (options.members) {
        bootOptions.frontend = true;
    }

    try {
        const app = await startGhost(bootOptions);
        const originURL = configUtils.config.get('url');

        return new AdminAPITestAgent(app, {
            apiURL: '/ghost/api/admin/',
            originURL
        });
    } catch (error) {
        error.message = `Unable to create test agent. ${error.message}`;
        throw error;
    }
}
Creates a AdminAPITestAgent which is a drop-in substitution for supertest.
It is automatically hooked up to the Admin API so you can make requests to e.g.
agent.get('/posts/') without having to worry about URL paths

@param {Object} [options={}]
@param {Boolean} [options.members] Include members in the boot process
@returns {Promise<InstanceType<AdminAPITestAgent>>} agent