??, Home.vue
中看到 router-link
或 router-view
:
??? Home.spec.ts
? ??? ??? ???.
? ?? ??/??:
.spyOn()
和 .mockImplementation...()
? ?????.toHaveBeenCalled...()
? ???? ?????? ???? ????? ?????mount()
函數(shù)中的存根應(yīng)與模板中使用的組件相關(guān)(因此,如果您不使用
???? ???? ? ???)??? ??? ????. ??!