W3cubDocs

/Angular

ModuleTeardownOptions

interface

Configures the test module teardown behavior in TestBed.

interface ModuleTeardownOptions {
  destroyAfterEach: boolean
  rethrowErrors?: boolean
}

Properties

Property Description
destroyAfterEach: boolean

Whether the test module should be destroyed after every test.

rethrowErrors?: boolean

Whether errors during test module destruction should be re-thrown. Defaults to true.

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