function shouldTransformTest(testName, grep) {
  if (grep == null) return true;
  if (!Array.isArray(grep)) grep = [grep];
  if (grep?.length) {
    for (let pattern of grep) {
      if (new RegExp(pattern).test(testName)) {
        return true;
      }
    }
  }
}
Checks if the given test name matches any of the 'grep' patterns.