-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(spy)!: reset existing spy on repeated spyOn
#7359
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to restore it? I would expect we can just reset the state
|
This reverts commit b229a85.
Or probably 346794b is what you meant? |
spyOn
Latest looks like it should do the trick. I'd be happy to test this once it's released. |
@vitest/browser
@vitest/coverage-v8
@vitest/coverage-istanbul
@vitest/expect
@vitest/pretty-format
@vitest/runner
@vitest/snapshot
@vitest/mocker
@vitest/spy
@vitest/ui
@vitest/utils
vite-node
vitest
@vitest/web-worker
@vitest/ws-client
commit: |
@NateRadebaugh Feel free to try the package on pkg-pr-new #7359 (comment) |
Description
Is this a breaking change again? 🤔
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yaml
unless you introduce a new test example.Tests
pnpm test:ci
.Documentation
pnpm run docs
command.Changesets
feat:
,fix:
,perf:
,docs:
, orchore:
.