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

TestModuleMetadata

interface

interface TestModuleMetadata {
  providers?: any[]
  declarations?: any[]
  imports?: any[]
  schemas?: Array<SchemaMetadata | any[]>
  teardown?: ModuleTeardownOptions
  errorOnUnknownElements?: boolean
  errorOnUnknownProperties?: boolean
}

Properties

Property Description
providers?: any[]
declarations?: any[]
imports?: any[]
schemas?: Array<SchemaMetadata | any[]>
teardown?: ModuleTeardownOptions
errorOnUnknownElements?: boolean

Whether NG0304 runtime 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/TestModuleMetadata