1 | <div align="center">
|
2 | <img src="./screen.png" />
|
3 | <br />
|
4 | <br />
|
5 | <img src="https://img.shields.io/travis/Raathigesh/majestic.svg?style=flat-square" />
|
6 | <img src="https://img.shields.io/github/license/Raathigesh/majestic.svg?style=flat-square" />
|
7 | <img src="https://img.shields.io/npm/v/majestic.svg?style=flat-square" />
|
8 | </div>
|
9 |
|
10 | <br />
|
11 |
|
12 | > Still WIP. Not published to npm yet.
|
13 |
|
14 | Majestic is a GUI for [Jest](https://jestjs.io/)
|
15 |
|
16 | - ✅ Run all the tests or a single file
|
17 | - ⏱ Toggle watch mode
|
18 | - 📸 Update snapshots
|
19 | - ❌ Examine test failures as they happen
|
20 | - 🔍 Search tests
|
21 |
|
22 | > Majestic supports Jest 22 and above
|
23 |
|
24 | ### Get started
|
25 |
|
26 | Run majestic via `npx` in a project directory
|
27 |
|
28 | ```bash
|
29 | cd ./my-jest-project # go into a project with Jest
|
30 | npx majestic # execute majestic
|
31 | ```
|
32 |
|
33 | or install Majestic globally via Yarn and run majestic
|
34 |
|
35 | ```bash
|
36 | yarn global add majestic # install majestic globally
|
37 | cd ./my-jest-project # go into a project with Jest
|
38 | majestic # execute majestic
|
39 | ```
|
40 |
|
41 | or install Majestic globally via Npm and run majestic
|
42 |
|
43 | ```bash
|
44 | npm install majestic -g # install majestic globally
|
45 | cd ./my-jest-project # go into a project with Jest
|
46 | majestic # execute majestic
|
47 | ```
|
48 |
|
49 | ### Running as app
|
50 |
|
51 | Running with the `--app` flag will launch Majestic as a chrome app.
|
52 |
|
53 | ### Optional configuration
|
54 |
|
55 | You can configure Majestic by adding `majestic` key to `package.json`.
|
56 |
|
57 | ```javascript
|
58 | // package.json
|
59 | {
|
60 | "majestic": {
|
61 | // if majestic fails to find the Jest package, you can provide it here
|
62 | jestScriptPath: "../node_modules/jest/bin/jest.js",
|
63 | // if you want to pass additional arguments to jest, do it here
|
64 | args: [],
|
65 | // environment variables to pass to the process
|
66 | env: {}
|
67 | }
|
68 | }
|
69 | ```
|
70 |
|
71 | ### Arguments
|
72 |
|
73 | `--port` - Will use this port if available, else Majestic will pick another free port.
|
74 |
|
75 | `--debug` - Will output extra debug info to console. Helps with debugging.
|
76 |
|
77 | ### Contribute
|
78 |
|
79 | Have a look at the [contribution guide](./CONTRIBUTING.MD).
|
80 |
|
81 | ### License
|
82 |
|
83 | MIT
|