Skip to main content
Version: 4.xx.xx

Testing

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

Run on your local
npm create refine-app@latest -- --example with-cypress