Skip to main content

Usage

Code support

Currently we only support React.js components using React Testing Library.

Add test IDs to React component

  1. Open a React component file
  2. Right-click on the file and click "Add test IDs" under the "Supertest" context menu. Or use cmd⌘+u cmd⌘i
  3. After ~5 seconds the React component will be updated with the test IDs
  4. Don't forget to save the file

Generate unit test

  1. Open a React component file
  2. Right-click on the file and click "Generate unit test" under the "Supertest" context menu. Or use cmd⌘+u cmd⌘t
  3. 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