how to mock nested module response in Node.js/Jest

前端 未结 0 1532
清歌不尽
清歌不尽 2020-12-12 04:38

I want to throw and error in a method of component called from other component than I\'m testing

// Class1.js
class Class1 {
  getData() {
    return { data }         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题