You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spearmint helps developers easily create functional React/Redux tests without writing any code. It dynamically converts user inputs into executable Jest test code by using DOM query selectors provided by @testing-library.
4
-
5
-
Spearmint is currently under development! We just finished our MVP and are looking for beta testers. Please open a new issue with details to report a bug. Adding support to mock API requests, context, and hooks are on the roadmap.
3
+
Spearmint helps developers easily create functional React/Redux/Endpoint tests without writing any code. It dynamically converts user inputs into executable Jest test code by using DOM query selectors provided by @testing-library.
6
4
7
5
## How to use
8
6
9
-
Download spearmint @ spearmintjs.com. Available for Mac OS and Windows. To run tests generated by spearmint install jest, @testing-library/jest-dom, @testing-library/react, and test-data-bot in your dev dependencies.
7
+
Download spearmint @ spearmintjs.com. Available for Mac OS and Windows.
8
+
9
+
To run React tests generated by spearmint, install the following in your dev dependencies.
10
10
11
11
npm i -D jest @testing-library/jest-dom @testing-library/react test-data-bot
12
12
13
+
To run Redux tests generated by spearmint, install the following in your dev dependencies, in addition to your React test installations above.
14
+
15
+
npm i -D redux-mock-store redux-thunk fetch-mock
16
+
17
+
To run Hooks / Context tests generated by spearmint, install the following in your dev dependencies, in addition to your React test installations above.
18
+
19
+
npm i -D @testing-library/react-hooks
20
+
21
+
To run Endpoint tests generated by spearmint, install the following in your dev dependencies.
22
+
23
+
npm i -D jest supertest
24
+
13
25
## How it works
14
26
15
-
1. On the initial screen, enter the URL of your project and load your React/Redux application to start creating tests.
27
+
1. On the initial screen, enter the URL of your project and load your application to start creating tests.
2. Utilize our auto-complete, drop-down options, and tooltips features to easily create arrangement, action, and assertion test statements for React, in addition to reducer, action creator, asynchronous action creator, and middleware test statements for Redux.
31
+
2. Utilize our auto-complete, drop-down options, and tooltips features to easily create arrangement, action, and assertion test statements for React; reducer, action creator, asynchronous action creator, and middleware test statements for Redux; and hooks, context, and endpoint test statements.
0 commit comments