From fecfc1cd321717fc81e9af9c130317a12cd05ec5 Mon Sep 17 00:00:00 2001 From: Jing Wei Date: Sat, 4 Jun 2022 22:46:23 +0800 Subject: [PATCH] docs: update description about headless browsers --- README.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 17d4ae6..d3f3e9c 100644 --- a/README.md +++ b/README.md @@ -54,12 +54,8 @@ You can pass list of browsers as a CLI argument too: $ karma start --browsers Chrome,Chrome_without_security ``` -## Headless Chromium with Puppeteer - -The Chrome DevTools team created [Puppeteer](https://github.com/GoogleChrome/puppeteer) - it will automatically install Chromium for all -platforms and contains everything you need to run it from within your CI. - -### Available Browsers +## Available Browsers + *Note: Headless mode requires a browser version >= 59* *Note: Headless mode requires a browser version >= 59* - Chrome (CHROME_BIN) @@ -70,14 +66,16 @@ platforms and contains everything you need to run it from within your CI. - ChromeCanaryHeadless (CHROME_CANARY_BIN) - Dartium (DARTIUM_BIN) -#### Usage -```bash -$ npm i -D puppeteer karma-chrome-launcher -``` +## Headless Chromium + +To run karma with headless version of Chrome, Chromium and Chrome Canary you can use: + +- ChromeHeadless +- ChromiumHeadless +- ChromeCanaryHeadless ```js // karma.conf.js -process.env.CHROME_BIN = require('puppeteer').executablePath() module.exports = function(config) { config.set({