async function testGhostHead(options) {
    let rendered = (await ghost_head(options)).toString();

    // Ignore some parts of the response by replacing regexes
    const portalVersion = /portal@~\d+\.\d+(\.\d+)?\//g;
    rendered = rendered.replace(portalVersion, 'portal@~[[VERSION]]/');

    const sodoSearchVersion = /sodo-search@~\d+\.\d+(\.\d+)?\//g;
    rendered = rendered.replace(sodoSearchVersion, 'sodo-search@~[[VERSION]]/');

    should.exist(rendered);
    // Note: we need to convert the string to an object in order to use the snapshot feature
    should({rendered}).matchSnapshot();
    return rendered;
}
This test helper asserts that the helper response matches the stored snapshot. This helps us detect issues where we
inject new scripts or meta tags on sites where this shouldn't be the case. Unless the changes in the snapshots are validated and approved.
So these changes become visible in PR's.