Skip to content

Commit 65bed1b

Browse files
committed
fix: only add container when angular attributes are removed
1 parent 4e1daaf commit 65bed1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/testing-library/src/lib/testing-library.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ export async function render<SutType, WrapperType = SutType>(
7676
if (idAttribute && idAttribute.startsWith('root')) {
7777
fixture.nativeElement.removeAttribute('id');
7878
}
79+
mountedContainers.add(fixture.nativeElement);
7980
}
8081

8182
await TestBed.compileComponents();
82-
mountedContainers.add(fixture.nativeElement);
8383

8484
let isAlive = true;
8585
fixture.componentRef.onDestroy(() => (isAlive = false));

0 commit comments

Comments
 (0)