2.1.4 • Published 2 years ago

jest-test-diff v2.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

Jest-Test-Diff

Shows test documentation for changes made between a checked out branch and master.

Installation

npm i -g jest-test-diff

Usage

Print test file spec description

Provide a list of test files it will print the test descriptions composed for human readability.

For example: jest-test-diff test/mySpecFile.test.js

(If you want to print as a flat series of steps, include the --flat flag.)

Print test file spec changes using git diff

Pipe a git diff in via stdin it will print the diff related to only the lines that were changed.

For example: git diff origin/main | jest-test-diff

(If you want to print as a flat series of steps, include the --flat flag.)

If you want to ignore some files in the git diff, use the --ignore flag. Provide substrings, and if a filename in the git diff matches any of those substrings it will be skipped. (This flag is ignored when passing filenames.)

For example: git diff origin/main | jest-test-diff --ignore snap

Available flags

flagshortdescription
--help-hprints the help text
--flat-lPrints test cases as flat series of steps
--ignore-iIgnore files in a git diff if their filenames contain any of the provided strings (multiple strings are accepted)
2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.0

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.6

4 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago