Skip to content

Commit e194bac

Browse files
committed
fix: only add container when angular attributes are removed
1 parent 0e724ed commit e194bac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)