export function buildTestRegExp(extensions) {

    const escapedExtensions = Array.from(extensions).map(ext => ext.replace(/\./g, '\\.'));

    return new RegExp(`\\.(${escapedExtensions.join('|')})$`);

}
