generator-jestr
v0.1.2
Published
Yeoman generators for method/function focused jest unit tests.
Downloads
7
Readme
generator-jestr
Save time writing Jest unit test boilerplate without an IDE.
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. |