ctx.mockImplementation(value)


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

    ¥value <any> The new value to be set as the mocked property value.

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

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