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

test(sdk): aim to 100% coverage #31

@akanoce

Description

@akanoce

Aim to 100% coverage for every hook, provider or util exported by the sdk

The MVP should be unit tests with vitest + react-testing-library ensuring every hook behaves correctly in all possible scenarios.

  • For read-only hooks, we can avoid mocking the requests to the nodes and ensuring the data returned matched a specific object structure and types;
  • For write hooks, we could instead mock the methods to create and submit the tx, ensuring the state of the mutation hook updates corectly;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions