1.0.6 • Published 4 years ago

jestanissue v1.0.6

Weekly downloads
14
License
ISC
Repository
github
Last release
4 years ago

JEST AN ISSUE

JEST + GITHUB ISSUES

This package runs Jest tests, get the ones failed and post them as issues in the given repository. You can also add a message to follow these tests results.

This package borrows code for issues creation from the github-create-issue (https://github.com/kgryte/github-create-issue#readme).

Installation

You can install the package with: npm install --save-dev jestanissue

#Usage

When you run the command for the first time the program will ask you for a token, with enough authorization to create issues in a repo. Also, the package will ask for the repository name (repo/repo-name) To use it, you first need to use: export PATH="$PATH:node_modules/.bin" And then: jestanissue (this will make it run every jest test you have in the repository, just like jest would) You can also specific tests like jestanissue test-login

To run tests without creating new issues you can: jestanissue --debug

To reset you repo info you can run (this will delete your token from the local machine, so be sure you saved it somewhere else): jestanissue --reset

I hope this turns out to be useful to somebody!