angular / 14.0.0 / api / core / testing / testenvironmentoptions.html /

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:

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:

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