Generate Jest Tests Automatically

JestSmith is your AI-powered testing companion that automatically generates comprehensive Jest test cases for your JavaScript and TypeScript code.

Faster Development

Everything you need to automate testing

JestSmith helps you write better tests faster, with intelligent test generation that covers all your use cases.

AI-Powered Test Generation

Leverage advanced AI to automatically generate comprehensive test cases for your code.

TypeScript Support

Full support for TypeScript projects with type-aware test generation.

Intelligent Edge Cases

Automatically identifies and generates tests for edge cases and error scenarios.

Fast & Efficient

Generate tests in seconds, saving hours of manual test writing time.

Get Started

Quick Installation

Get up and running with JestSmith in minutes. Just install the package and start generating tests.

1. Install the package

npm install -g jestsmith

2. Generate tests for a file

jestsmith ./Login.tsx

3. Generate tests for a folder

jestsmith ./users

Documentation

API Reference

Explore JestSmith’s powerful configuration options to customize test generation for your needs.

Configuration Options

JestSmith provides a set of configuration options to customize test generation for your needs.

→ Provide the path to the output directory

--out-dir
jestsmith ./LoginForm.tsx --out-dir ./tests

→ Provide a custom describe block or any additional guidelines for the tests

--describe
jestsmith ./LoginForm.tsx --describe "This is a Login Form"

Additional Resources