angular / 12.2.13 / api / core / testing / moduleteardownoptions.html /

ModuleTeardownOptions

interface

Object used to configure 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://v12.angular.io/api/core/testing/ModuleTeardownOptions