Usage
Code support
Currently we only support React.js components using React Testing Library.
Add test IDs to React component
- Open a React component file
- Right-click on the file and click "Add test IDs" under the "Supertest" context menu. Or use
cmd⌘+u cmd⌘i
- After ~5 seconds the React component will be updated with the test IDs
- Don't forget to save the file
Generate unit test
- Open a React component file
- Right-click on the file and click "Generate unit test" under the "Supertest" context menu. Or use
cmd⌘+u cmd⌘t
- After ~15 seconds, a new file will be created in the same folder as the original file.
The file will be named{file name}.test.js