MCPcopy Index your code
hub / github.com/angular/angular / unknownElErrorRegex

Function unknownElErrorRegex

packages/core/test/acceptance/standalone_spec.ts:740–745  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

738
739 describe('unknown template elements', () => {
740 const unknownElErrorRegex = (tag: string) => {
741 const prefix = `'${tag}' is not a known element \\(used in the 'AppCmp' component template\\):`;
742 const message1 = `1. If '${tag}' is an Angular component, then verify that it is included in the '@Component.imports' of this component.`;
743 const message2 = `2. If '${tag}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@Component.schemas' of this component to suppress this message.`;
744 return new RegExp(`${prefix}s*\ns*${message1}s*\ns*${message2}`);
745 };
746
747 it('should warn the user when an unknown element is present', () => {
748 const spy = spyOn(console, 'error');

Callers 1

standalone_spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…