karma-safari-launcher

2018-09-16 admin

karma-safari-launcher是什么

什么是karma-safari-launcher,A Karma plugin. Launcher for Safari.

karma-safari-launcher使用教程帮助文档

karma-safari-launcher

Launcher for Safari.

Installation

The easiest way is to keep karma-safari-launcher as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-safari-launcher": "~0.1"
  }
}

You can simple do it by:

npm install karma-safari-launcher --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    browsers: ['Safari']
  });
};

You can pass list of browsers as a CLI argument too:

karma start --browsers Safari

For more information on Karma see the homepage.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-40384.html

文章标题:karma-safari-launcher

回到顶部