Skip to content
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

Make wrapito agnostic of test framework #54

Open
sigfriedCub1990 opened this issue Apr 25, 2024 · 0 comments · May be fixed by #56
Open

Make wrapito agnostic of test framework #54

sigfriedCub1990 opened this issue Apr 25, 2024 · 0 comments · May be fixed by #56

Comments

@sigfriedCub1990
Copy link
Member

sigfriedCub1990 commented Apr 25, 2024

✨ Feature proposal

I would like wrapito to be agnostic of the test framework we're using.

🎯 Motivation

Currently this version is only compatible with vitest because we use Vitest's mocking capabilities in order to verify if an endpoint was called, which parameters it was called with, etc.

Although this has worked well so far we shouldn't couple wrapito to any test framework, if possible. So, my suggestion here would be to use something like Tinyspy in order to do the verifications and decouple from vitest | jest.

This will also allow us to have only one version of wrapito.

👀 Example

This shouldn't affect end users since it's only used internally.

@sigfriedCub1990 sigfriedCub1990 linked a pull request May 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant