Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

majestic

> 前端框架
Open source

⚡ Zero config GUI for Jest

7.5K stars0 likes2 views
WebsiteGitHub

About

⚡ Zero config GUI for Jest


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

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

or install Majestic globally via Yarn and run majestic

bash
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

bash
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.

javascript
// 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

javascript
{
    "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


Max Bridgland


Yuraima Estevez


Jake Crosby


Gavin Henderson


briwa


Luan Ferreira


Tushar Gupta


Agusti Fernandez


Moos


MacZel


Vikram Dighe


John Smey


BuckAMayzing


Rahul A. Krishna


Amila Welihinda


gregveres


adam klein

⚠️

Raphaël Barbazza


Phil Alsford

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

Issues· 50 open

View all issuesOpen on GitHub
  • #234

    Fuck you

    Updated Nov 11, 2025
  • #232

    VsCode gets focus from majestic ui browser

    Updated Apr 5, 2024
  • #231

    [Feature Request] Ability to start single test

    Updated Apr 2, 2024
  • #181

    test list gets screwed up when multiple tests have the same name but are in different describe blocks

    Updated Apr 2, 2024
  • #229

    [Feature request] docker image

    Updated Apr 2, 2024
  • #230

    Majestic is not loading next/jest + jest.config.

    Updated Mar 16, 2024
  • #184

    FR: clicking on a failed test should open the failed test to that line in the editor

    Updated Dec 12, 2023
  • #228

    Feat: Button to copy actual content of "Console logs from the file"

    Updated Nov 23, 2023
  • #227

    [Question] how can I get result only in one file?

    Updated Oct 18, 2023
  • #142

    Opps, Something went wrong. Check the terminal for exact error message!

    🦄 Need more infoUpdated Jul 31, 2023

> Tags

TypeScriptdeveloper-experiencedeveloper-toolsjestreact

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架