You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jest-extended brings many useful additional matchers, and while it's already possible to use it to extend vitest's expect, I'm wondering if there is any willingness to include a few more basic matchers from it into vitest itself because jest-extended is rather heavyweight.
What are "generally useful" matchers, and why should they be in a core? If community wants to have a light weight jest-extended package, let them create one. We might mention it in a docs.
Clear and concise description of the problem
jest-extended brings many useful additional matchers, and while it's already possible to use it to extend vitest's
expect
, I'm wondering if there is any willingness to include a few more basic matchers from it into vitest itself because jest-extended is rather heavyweight.I'm primarily looking at very simple matchers like .toStartWith(prefix), .toInclude(substring) or the type matchers like .toBeNumber().
Suggested solution
Port over a few of the generally useful matchers from jest-extended.
Validations
The text was updated successfully, but these errors were encountered: