-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
p2-nice-to-haveNot breaking anything but nice to have (priority)Not breaking anything but nice to have (priority)pr welcome
Description
Clear and concise description of the problem
Hello,
Knowing when a mock is called relatively to another is very useful to ensure implementation order is correct. Actually, these is no expect function to know that. Do you thing it could be possible to add some or have you any recommanded way to check that a mock vi.fn is called before or after another one.
Suggested solution
Integrate https://github.com/jest-community/jest-extended/blob/main/src/matchers/toHaveBeenCalledBefore.js to core of vitest.
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
p2-nice-to-haveNot breaking anything but nice to have (priority)Not breaking anything but nice to have (priority)pr welcome
Type
Projects
Status
Approved