1.0.1 • Published 5 years ago

jest-test-creator v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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 or sp : Option to add directory path for jest-test-creator to watch on for file creation. By default, jest-test-creator will watch on src folder in the root directory.

  • testFolder or tp : 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__