Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

TestEnvironmentOptions

      
      interface TestEnvironmentOptions {
  teardown?: ModuleTeardownOptions
  errorOnUnknownElements?: boolean
  errorOnUnknownProperties?: boolean
}
    

Properties

Property Description
teardown?: ModuleTeardownOptions

Configures the test module teardown behavior in TestBed.

errorOnUnknownElements?: boolean

Whether errors should be thrown when unknown elements are present in component's template. Defaults to false, where the error is simply logged. If set to true, the error is thrown.

See also:

  • NG8001 for the description of the error and how to fix it

errorOnUnknownProperties?: boolean

Whether errors should be thrown when unknown properties are present in component's template. Defaults to false, where the error is simply logged. If set to true, the error is thrown.

See also:

  • NG8002 for the description of the error and how to fix it