1.2.6 • Published 5 years ago
@hackthenorth/quai v1.2.6
Quai
Quai is a testing tool built in React that's used by Hack the North for bug reporting in Jira!
Usage
Installation
Install the package in your project:
$ npm install --save @hackthenorth/quaiSetup
Before using the Quai component, you must:
- Provide a valid HackerAPI auth token as an environment variable with key
QUAI_QA_TOKEN. - Provide an environment variable with key
QAset to truthy (1,true, etc).
Note: when used in a React app, you must prefix env variables with
REACT_APP_for it to be picked up by React.
Using component
Wherever your application structure is located, import and use the Quai component:
import Quai from "@hackthenorth/quai";
// ... your component ...
return <Quai projectEpicKey="JIRA_ISSUE_KEY" />;
// ... your component ...projectEpicKey should be the parent issue/epic that you'd like child issues to be created under in Jira.
Development
Setup
First, clone the repo:
$ git clone https://github.com/hackathon/quai.git
$ cd quaiRunning locally
To start a local dev server:
$ npm startTODO: tests?
Tech stack
- React
- styled-components
- Jest
- Buildkite
- TypeScript