jest.fnmus는 부르지 않았다고 주장하지만, 지금까지. 경로에 특정 매개 변수가 있을 때 내 Vuex 저장소에서 특정 작업을 호출하는 Vue 구성 요소를 테스트하는 중.로 그 행동을 조롱하고 있다.jest.fn(). 구성 요소의 관련 코드: await this.$store.dispatch('someOtherAction'); if (this.$route.params && this.$route.params.id) { this.$store.dispatch('selection/selectElement', parseInt(this.$route.params.id, 10)); } 여기에 모의 기능이 있다. someOtherAction = jest.fn(); selectElement = jest.fn(() => ..