DEV Community

Spearmint
Spearmint

Posted on

A secret way to test your React without writing code.

Writing tests is like eating your veggies: it is something everyone knows that they should do, but not everyone does. Spearmint provides a simple way to write tests that give you confidence your React application will work in the way your users interact with it.

Using Spearmint, developers can easily generate React tests by using our user-friendly GUI. It dynamically converts user inputs into executable Jest test code by using DOM query selectors provided by the react-testing-library. We chose react-testing-library over Enzyme because it guides developers to focus on testing user behavior rather than testing implementation details. By leveraging react-testing-library, our application provides our users with more stable tests that do not break when refactoring or gives false positives due to shallow-rendering.

Visit us at:
www.spearmintjs.com
www.github.com/spearmintjs/spearmint

Top comments (0)