majestic
Run majestic via `npx` in a project directory
Last updated a month ago by raathigesh .
MIT · Original npm · Tarball · package.json
$ cnpm install majestic 
SYNC missed versions from official npm registry.


Join the community on Spectrum

Majestic is a GUI for Jest

  • ✅ Run all the tests or a single file
  • ⏱ Toggle watch mode
  • ???? Update snapshots
  • ❌ Examine test failures as they happen
  • ⏲ Console.log() to the UI for debugging
  • ???? Built-in coverage report
  • ???? Search tests
  • ???? Works with flow and typescript projects
  • ???? Works with Create react app

Majestic supports Jest 20 and above

Get started

Run majestic via npx in a project directory

cd ./my-jest-project # go into a project with Jest
npx majestic # execute majestic

or install Majestic globally via Yarn and run majestic

yarn global add majestic # install majestic globally
cd ./my-jest-project # go into a project with Jest
majestic # execute majestic

or install Majestic globally via Npm and run majestic

npm install majestic -g # install majestic globally
cd ./my-jest-project # go into a project with Jest
majestic # execute majestic

Running as an app

Running with the --app flag will launch Majestic as a chrome app.

Optional configuration

You can configure Majestic by adding majestic key to package.json.

// package.json
{
    "majestic": {
        // if majestic fails to find the Jest package, you can provide it here. Should be relative to the package.json
        "jestScriptPath": "../node_modules/jest/bin/jest.js",
        // if you want to pass additional arguments to Jest, do it here
        "args": ['--config=./path/to/config/file/jest.config.js'],
        // environment variables to pass to the process
        "env": {
          "CI": "true"
        }
    }
}

Optional configuration in project with multiple Jest configuration files

{
    "majestic": {
        "jestScriptPath": "../node_modules/jest/bin/jest.js",
        "configs": {
          "config1": {
            "args": [],
            "env": {}
          },
          "config2": {
            "args": [],
            "env": {}
          }
        }
    }
}

Arguments

--config - Will use this config from the list supplied in optional configuration.

--debug - Will output extra debug info to console. Helps with debugging.

--noOpen - Will prevent from automatically opening the UI url in the browser.

--port - Will use this port if available, else Majestic will pick another free port.

--version - Will print the version of Majestic and will exit.

Shortcut keys

alt+t - run all tests

alt+enter - run selected file

alt+w - watch

alt+s - search

escape - close search

Troubleshooting

Have a look at some of the common workarounds.

Contribute

Have a look at the contribution guide.

Contributors

Thanks goes to these wonderful people (emoji key):

Duncan Beevers
Duncan Beevers

????
Max Bridgland
Max Bridgland

???? ???? ???? ????
Yuraima Estevez
Yuraima Estevez

????
Jake Crosby
Jake Crosby

????
Gavin Henderson
Gavin Henderson

????
briwa
briwa

????
Luan Ferreira
Luan Ferreira

????
Tushar Gupta
Tushar Gupta

????
Agusti Fernandez
Agusti Fernandez

???? ????
Moos
Moos

???? ???? ????
MacZel
MacZel

???? ????
Vikram Dighe
Vikram Dighe

????
John Smey
John Smey

???? ???? ????
BuckAMayzing
BuckAMayzing

???? ????

This project follows the all-contributors specification. Contributions of any kind welcome!

Current Tags

  • 1.1.0                                ...           alpha (10 months ago)
  • 1.6.0                                ...           latest (a month ago)
  • 1.2.7                                ...           next (4 months ago)

45 Versions

  • 1.6.0                                ...           a month ago
  • 1.5.0                                ...           2 months ago
  • 1.4.1                                ...           3 months ago
  • 1.4.0                                ...           3 months ago
  • 1.3.0                                ...           4 months ago
  • 1.2.24                                ...           4 months ago
  • 1.2.23                                ...           4 months ago
  • 1.2.22                                ...           4 months ago
  • 1.2.21                                ...           4 months ago
  • 1.2.20                                ...           4 months ago
  • 1.2.19                                ...           4 months ago
  • 1.2.18                                ...           4 months ago
  • 1.2.17                                ...           4 months ago
  • 1.2.16                                ...           4 months ago
  • 1.2.15                                ...           4 months ago
  • 1.2.14                                ...           4 months ago
  • 1.2.13                                ...           4 months ago
  • 1.2.12                                ...           4 months ago
  • 1.2.11                                ...           4 months ago
  • 1.2.10                                ...           4 months ago
  • 1.2.8                                ...           4 months ago
  • 1.2.7                                ...           4 months ago
  • 1.2.6                                ...           4 months ago
  • 1.2.5                                ...           4 months ago
  • 1.2.4                                ...           4 months ago
  • 1.2.3                                ...           4 months ago
  • 1.2.2                                ...           4 months ago
  • 1.2.1                                ...           4 months ago
  • 1.2.0                                ...           4 months ago
  • 1.1.0                                ...           10 months ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.11                                ...           a year ago
  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.0.0                                ...           3 years ago
Maintainers (2)
Downloads
Today 0
This Week 4
This Month 62
Last Day 1
Last Week 52
Last Month 99
Dependencies (3)
Dev Dependencies (79)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |