Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Memory leak in tests due to $injector being attached to $rootElement #14094

Closed
@gkalpak

Description

@gkalpak

#14034 introduced the following memory leak in tests using angular-mocks:

The $injector is attached to the $rootElement (like this) and is never cleaned up.
Since a new $rootElement is created for every test, the leak causes Karma to crash on large test-suites.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions