W3cubDocs

/Angular

TestEnvironmentOptions

interface

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

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/testing/TestEnvironmentOptions