Skip to content

Commit dca7edd

Browse files
feat: destroy fixture in cleanup (#240) (#241)
1 parent 2cd25b8 commit dca7edd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: projects/testing-library/src/lib/testing-library.ts

+2
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@ function cleanup() {
363363
}
364364

365365
function cleanupAtFixture(fixture) {
366+
fixture.destroy();
367+
366368
if (!fixture.nativeElement.getAttribute('ng-version') && fixture.nativeElement.parentNode === document.body) {
367369
document.body.removeChild(fixture.nativeElement);
368370
}

0 commit comments

Comments
 (0)