generator-jestr

0.1.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i generator-jestr

Weekly Downloads

0

Version

0.1.2

License

ISC

Unpacked Size

8.15 kB

Total Files

7

Last publish

Collaborators

  • tjmgregory