message: test(compiler-cli): improve error message if a unit test is bad
  The message now also reports the name of the predicate function
  that failed.
  PR Close
diff: @@ -60,7 +60,8 @@ export function getDeclaration<T extends ts.Declaration>(
  throw new Error(`No such symbol: ${name} in ${fileName}`);
  }
  if (!assert(chosenDecl)) {
  - throw new Error(`Symbol ${name} from ${fileName} is a ${ts.SyntaxKind[chosenDecl.kind]}`);
  + throw new Error(`Symbol ${name} from ${fileName} is a ${
  + ts.SyntaxKind[chosenDecl.kind]}. Expected it to pass predicate "${assert.name}()".`);
  }
  return chosenDecl;
  }
  