扫一扫分享

Majestic是一款用Jest运行测试的electron程序。 Majestic是一个工具,当您使用Jest编写测试时,为您提供出色的开发人员体验。
您可以通过向添加majestic密钥来配置Majestic 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"
        }
    }
}{
    "majestic": {
        "jestScriptPath": "../node_modules/jest/bin/jest.js",
        "configs": {
          "config1": {
            "args": [],
            "env": {}
          },
          "config2": {
            "args": [],
            "env": {}
          }
        }
    }
}--config -将使用可选配置中提供的列表中的此配置。
--debug-将向控制台输出额外的调试信息。帮助调试。
--noOpen -将阻止在浏览器中自动打开UI网址。
--port -如果可用,将使用此端口,否则Majestic将选择另一个免费端口。
--version -将打印Majestic的版本并退出。
 
仅供个人学习参考/导航指引使用,具体请以第三方网站说明为准,本站不提供任何专业建议。如果地址失效或描述有误,请联系站长反馈~感谢您的理解与支持!
手机预览
