fix(core): add stacktrace in log when error during cleanup component in TestBed (#22162)
PR Close #22162
This commit is contained in:

committed by
Miško Hevery

parent
e576b69d10
commit
c4f841f031
@ -287,7 +287,10 @@ export class TestBed implements Injector {
|
||||
try {
|
||||
fixture.destroy();
|
||||
} catch (e) {
|
||||
console.error('Error during cleanup of component', fixture.componentInstance);
|
||||
console.error('Error during cleanup of component', {
|
||||
component: fixture.componentInstance,
|
||||
stacktrace: e,
|
||||
});
|
||||
}
|
||||
});
|
||||
this._activeFixtures = [];
|
||||
|
Reference in New Issue
Block a user