How to mock just constructor of Class in Jest

后端 未结 0 1373
误落风尘
误落风尘 2021-01-24 11:45

I have some class like this

class Foo {

    constructor() {...}

    public bar() {...}
}

I want to test

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