message: test(compiler-cli): Add test for checkTypeOfDomReferences = false
  Add test for when `checkTypeOfDomReferences = false` to ensure that we
  do not regress in behavior at any point. The desired behavior for this
  case is that the `TemplateTypeChecker` will honor the user's
  configuration and not produce symbols for the dom reference.
  PR Close
diff: @@ -539,7 +539,8 @@ runInEachFileSystem(() => {
  expect(program.getTypeChecker().typeToString(bSymbol.tsType)).toEqual('number');
  });
  - it('should get symbol for local reference of an Element', () => {
  + describe('local reference of an Element', () => {
  + it('checkTypeOfDomReferences = true', () => {
  const fileName = absoluteFrom('/main.ts');
  const {templateTypeChecker, program} = setup([
  {
  @@ -566,6 +567,31 @@ runInEachFileSystem(() => {
  expect((myRefUsage.declaration as TmplAstReference).name).toEqual('myRef');
  });
  + it('checkTypeOfDomReferences = false', () => {
  + const fileName = absoluteFrom('/main.ts');
  + const {templateTypeChecker, program} = setup(
  + [
  + {
  + fileName,
  + templates: {
  + 'Cmp': `
  + <input #myRef>
  + <div [input]="myRef"></div>`
  + },
  + },
  + ],
  + {checkTypeOfDomReferences: false});
  + const sf = getSourceFileOrError(program, fileName);
  + const cmp = getClass(sf, 'Cmp');
  + const nodes = getAstElements(templateTypeChecker, cmp);
  +
  + const refSymbol = templateTypeChecker.getSymbolOfNode(nodes[0].references[0], cmp);
  + // Our desired behavior here is to honor the user's compiler settings and not produce a
  + // symbol for the reference when `checkTypeOfDomReferences` is false.
  + expect(refSymbol).toBeNull();
  + });
  + });
  +
  it('should get symbols for references which refer to directives', () => {
  const fileName = absoluteFrom('/main.ts');
  const dirFile = absoluteFrom('/dir.ts');
  