Back to Refine

Testing in Refine v4 | Unit & E2E Testing Guide

documentation/versioned_docs/version-4.xx.xx/further-readings/testing.md

3.25.0597 B
Original Source

Refine's components and hooks are made from small pieces of code. Each component or hook is designed to be testable and work independently of each other.

So, you don't need unit testing, because Refine is already tested by its maintainers. However, you can write unit tests in your own code (helper, definitions, etc.).

We strongly recommend that you write end-to-end tests of your application. Refine used the cypress framework as an example. You are free to write tests with any framework you want.

Example

<CodeSandboxExample path="with-cypress" />