Description
Spearmint is a desktop GUI that generates Jest tests for JavaScript projects without writing test code by hand. It is described as an accessibility-first interface, and it turns your choices into test statements using DOM query selectors from @testing-library. You open the folder of the repository you want to test, choose the framework or type of test, and use the auto-complete, drop-down options and tooltips to build arrangement, action and assertion statements. Spearmint supports tests for React, Vue, Svelte and Solid, reducers, action creators, asynchronous action creators and middleware for Redux, and hooks, context, endpoints and GraphQL. It also covers accessibility, endpoint, GraphQL, Puppeteer and security tests. The generated test file appears in a code editor, and a User Guide tab explains how to export and run the tests. You can manually edit a test in the test editor, though the README notes that edits are only reflected in the file when the test is selected in the left panel. Version 0.14.0 moved most of the codebase to TypeScript, added coverage reporting, and updated Electron and other dependencies. The roadmap lists continued TypeScript conversion, persistent user data through GitHub or Google login, and deeper testing of existing frameworks. Spearmint is downloaded from the project website, and the README points developers to a separate development guide.…
Highlights
- Generates Jest tests through a point-and-click GUI
- Supports React, Vue, Svelte, Solid, Redux, hooks and GraphQL
- Builds tests from @testing-library query selectors
- Editable test file in the built-in editor
- Accessibility-first interface with tooltips
Ratings & Reviews
No ratings yet
Be the first to rate Spearmint.
People also visit
Spearmint FAQ
What is Spearmint?
A GUI for generating Jest tests for JavaScript projects, using @testing-library query selectors, without writing the test code by hand.
Which frameworks are supported?
React, Vue, Svelte and Solid components, Redux reducers, actions and middleware, hooks, context, endpoints and GraphQL, plus accessibility, Puppeteer and security tests.
How do I install it?
Download it from the project website, as the README instructs. Developers should read the README-dev.md file.
Can I edit the generated tests?
Yes. Select the test file in the left panel and edit it in the test editor. Edits are only reflected in the file this way.
Is there a user guide?
Yes. A User Guide tab on the right explains how to export and run the tests.
Is it open source?
Yes. The source is on GitHub under the open-source-labs organization.
What are the best Spearmint alternatives?
Popular alternatives to Spearmint include SpeckJS, Carbonate and Apimesh. See all Spearmint alternatives











