免责声明:我对Vue、JavaScript和一般的Web框架还很陌生。我正在尝试使用Jest和vue-test-utils熟悉一些基本的单元和组件测试。我已经阅读了关于vue-test-utils的文档'mount()和shallowMount(),但我不确定何时使用其中一个(它们看起来非常相似)。根据shallowMount()上的文档:Likemount,itcreatesaWrapperthatcontainsthemountedandrenderedVuecomponent,butwithstubbedchildcomponents.“stub子组件”到底是什么意思?mount