This extension allows you to generate unit tests for your TypeScript code using ChatGPT. Simply provide the name of a class or function, and ChatGPT will generate a unit test for it.
Install the extension from the Visual Studio Code Extension Marketplace (Ctrl+Shift+X). Restart Visual Studio Code.
To generate a unit test, open a TypeScript file in Visual Studio Code and run the "Generate Unit Tests" command (Ctrl+Shift+P and then type "Generate Unit Tests"). This will prompt you for input and then generate a unit test based on that input using ChatGPT.
If you encounter any issues with this extension, please file an issue on the GitHub repository.
If you'd like to contribute to this extension, please fork the GitHub repository and submit a pull request.
This extension is licensed under the MIT License.
This extension uses the ChatGPT API from OpenAI.