0.1.2 • Published 3 years ago

generator-jestr v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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.jsonCLI argOptionsDescription
defaultLanguage--languagejs, tsWhich language you would like the output test files to be written in.
prettierConfigPathn/astringThe path from the .yo-rc.json to your prettier configuration.
0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago