Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 Angular 应用程序中,当运行测试用例时,我突然在其中一个组件中遇到以下错误,这些组件在当前签入 SVN 时甚至没有更改或修改。
错误说:HeadlessChrome 错误:“清理组件时出错”
我在我的博客中看到 ngOnDestroy 中存在一些问题并取消订阅我无法确定哪个组件可能会失败。任何帮助表示赞赏
尝试在 afterAll 钩子中销毁组件夹具并检查它是否有帮助。
afterAll(() => { fixture.destroy(); });