Raathigesh / majestic
- среда, 27 марта 2019 г. в 00:17:43
TypeScript
⚡ Zero config GUI for Jest
Majestic is a GUI for Jest
Majestic supports Jest 20 and above
Run majestic via npx in a project directory
cd ./my-jest-project # go into a project with Jest
npx majestic # execute majesticor 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 majesticor 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 majesticRunning with the --app flag will launch Majestic as a chrome app.
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: [],
// environment variables to pass to the process
env: {}
}
}--port - Will use this port if available, else Majestic will pick another free port.
--debug - Will output extra debug info to console. Helps with debugging.
--version - Will print the version of Majestic and will exit
Have a look at the contribution guide.
MIT