How to spyOn an exported standalone function using javascript jest?

后端 未结 0 1199
感动是毒
感动是毒 2021-01-07 09:40

It is a very simple scenario but I\'ve struggled to find an answer for it.

helpers.ts:

export function foo() {
    bar();
}

export function bar() {
           


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