Jest-Genie: Test Suite Generator Using OpenAi's GPT-3.5 Turbo Model
JestGenie is a tool that uses OpenAI's GPT technology to generate test suites for React projects written in typescript
Typescript is especially useful here since it gives GPT-3.5 Turbo types and/or interfaces to work with which it will use to create more accurate and contextual test suites
You can generate tests by right clicking a file and selecting "Jest Genie: Generate Tests" option in the menu
Note:
GPT-3.5 Turbo can only handle 4,096 tokens in a given request (at 4 tokens a word we get ~1,024 words)
Both input and output tokens count toward this limit so some files may be too large to process
This will become less of an issue as OpenAI opens up GPT-4 and future models to their api