function getTestName(test, api) {
  let j = api.jscodeshift;
  let it = test
    .find(j.CallExpression, {callee: {name: 'it'}})
    .get('arguments', 0).value.value;

  let desc = [it];

  let describe = test.closest(j.CallExpression, {callee: {name: 'describe'}});
  while (describe.length > 0) {
    desc.unshift(describe.get('arguments', 0).value.value);
    describe = describe.closest(j.CallExpression, {callee: {name: 'describe'}});
  }

  return desc.join(' ');
}
Gets the test name as it might be presented by mocha.