2.1.4 • Published 5 months ago

jest-test-diff v2.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 months 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

5 months ago

2.1.1

5 months ago

2.1.4

5 months ago

2.1.3

5 months ago

2.1.0

5 months ago

2.0.3

5 months ago

2.0.2

5 months ago

2.0.4

5 months ago

2.0.1

5 months ago

2.0.0

5 months ago

1.0.6

3 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago