Latest version of tinyspy (3.0.1) causes a Cannot redefine property: mock
when trying to spyOn an object multiple times
#6465
Labels
Cannot redefine property: mock
when trying to spyOn an object multiple times
#6465
Describe the bug
Renovate caught this issue in our CI (apify/apify-cli#636). It seems like the latest version of tinyspy (3.0.1) causes some issues when trying to spy on and mock an object's method multiple times. This issue doesn't repro on tinyspy 3.0.0 (and somehow I was also unable to reproduce this with tinyspy directly...)
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-uuvjoy
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: