-
Notifications
You must be signed in to change notification settings - Fork 24
vitest expect matcher #41
Copy link
Copy link
Open
Description
testing around the result type may need some extra work rather than normal value
so we need to extend expect matchers to help developer to testing Result
so working with Result would be similar as working with Promise
user would just use expect(val).resultOk.toBe("foo")
how if those helpers are included in package, something like "better-result/vitest"
this could be achieved by creating chai plugin, and add "@vitest/expect" as peer dependency
but the typescript types may need manually configured in user end
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels