Skip to content

unit-test builder should allow users to disable teardown for debugging reasonsΒ #31733

@yjaaidi

Description

@yjaaidi

Command

test

Description

It would be nice to provide a way to disable teardown from the CLI.

This is useful in headed browser mode to interact with the mounted component in it's final state after the test ends.

Describe the solution you'd like

Maybe teardown could be disabled when --debug is set or maybe also provide a different boolean option such as teardown when using headed browser mode.

Describe alternatives you've considered

Once this is fixed #31732, one can add a setup file with the following content:

TestBed.configureTestingModule({teardown: {destroyAfterEach: false}});

This could be configured dynamically at user's convenience.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions