A command line utility to generate test cases for react components using AI.
This is a work in progress and is not ready for use. It originated from a talk I gave at React Nexus 2024. Here are the slides for the talk.
npm install
export OPENAI_API_KEY=<your-openai-api-key>
Run an example from the talk
npm run auto-guardian -- -p ./src/talk-examples/hierarchy/ParentComponent.tsx -n ParentComponent
npm run auto-guardian -- -p ./src/talk-examples/redux-connected/Page.tsx -n Page
There are no open issues right now but a few proposals on the roadmap. Feel free to comment on any item in the roadmap you want to work on and I will create an issue and assign it to you. If you have any other ideas, feel free to open an issue.