Jest 中钩子函数

首先,咱们来写一个类,并把它放入一个文件 counter.js 中,代码以下。api class Counter { constructor () { this.number = 0 } addOne () { this.number += 1 } minusOne () { this.number -= 1
相关文章
相关标签/搜索