1.0.1 • Published 5 years ago
jest-test-creator v1.0.1
jest-test-creator
jest-test-creator
is a tool to create corresponding tests while creating classes inside projects.
Table of Contents
Introduction
jest-test-creator
is a tool that can enhance your experience while following test driven development. It creates the tests as soon as you create a file. It uses jest as the default test runner.
There are plans to extend it for test runners as well.
- Creates corresponding test file as you create a file in project in the relevant test folder.
- Creates basic scafolding in test file
- Runs the jest in watch mode
Installation
npm install --save-dev jest-test-creator
or
yarn add --dev jest-test-creator
Configuration
sourcePath
orsp
: Option to add directory path forjest-test-creator
to watch on for file creation. By default,jest-test-creator
will watch onsrc
folder in the root directory.testFolder
ortp
: Option to add test folder name. By default it is__tests__
Usage
jest-test-creator
or with options
jest-test-creator --sp otherfolder --tp __specs__