W3cubDocs

/Angular

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:

  • NG8001 for the description of the problem 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/TestModuleMetadata