UNPKG

2.08 kBMarkdownView Raw
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
14Majestic 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
26Run majestic via `npx` in a project directory
27
28```bash
29cd ./my-jest-project # go into a project with Jest
30npx majestic # execute majestic
31```
32
33or install Majestic globally via Yarn and run majestic
34
35```bash
36yarn global add majestic # install majestic globally
37cd ./my-jest-project # go into a project with Jest
38majestic # execute majestic
39```
40
41or install Majestic globally via Npm and run majestic
42
43```bash
44npm install majestic -g # install majestic globally
45cd ./my-jest-project # go into a project with Jest
46majestic # execute majestic
47```
48
49### Running as app
50
51Running with the `--app` flag will launch Majestic as a chrome app.
52
53### Optional configuration
54
55You 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
79Have a look at the [contribution guide](./CONTRIBUTING.MD).
80
81### License
82
83MIT