Skip to content

tjmgregory/generator-jestr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generator-jestr

npm version

Save time writing Jest unit test boilerplate without an IDE.

asciicast

Features

  • Support for JavaScript and TypeScript 🔨
  • Applies your local Prettier configuration when generating tests 💅 (WIP, see this issue)

Getting started

Installation

npm install --dev yo
npm install --dev generator-jestr

Usage

cd path-to-where-you-would-like-your-new-test-file
yo jestr

Configuration

On first run, yeoman will create a .yo-rc.json for you with all the defaults. This file should be placed at the root of your project.

.yo-rc.json CLI arg Options Description
defaultLanguage --language js, ts Which language you would like the output test files to be written in.
prettierConfigPath n/a string The path from the .yo-rc.json to your prettier configuration.

About

Yeoman generators for method/function focused jest unit tests.

Resources

Stars

Watchers

Forks

Packages

No packages published