Matching generator/iterator in jest

后端 未结 0 1374
天命终不由人
天命终不由人 2021-02-01 03:30

Is there a way in jest to match output of a generator?

Like this:

function f() {
  yield 1
  yield 2
  yield 3
}

it         


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