TestPilot is a tool that uses a large language model (LLM) to automatically generate unit tests for npm packages written in JavaScript/TypeScript. It doesn’t require additional training or examples of functions and their associated tests. TestPilot prompts the LLM with a skeleton of a test, including information about the function, and translates the model’s response into a runnable unit test. The tool can refine the test if it fails initially.
Read more at GitHub…