ctx.mockImplementation(value)


  • value <any> 要设置为模拟属性值的新值。

此函数用于更改模拟属性 getter 返回的值。

【This function is used to change the value returned by the mocked property getter.】