1.0.1 • Published 6 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-creatoror
yarn add --dev jest-test-creatorConfiguration
sourcePathorsp: Option to add directory path forjest-test-creatorto watch on for file creation. By default,jest-test-creatorwill watch onsrcfolder in the root directory.testFolderortp: 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__