Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Make wrapito agnostic of test framework #54

@sigfriedCub1990

Description

@sigfriedCub1990

✨ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions