Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-chromium

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-chromium

One place to hold all the logic to download and run ember tests in chromium

  • 3.0.1
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Ember Chromium

Ember chromium is an easy way to download chromium in your project and run your unit/integration tests through it. It will also run headless by default on CI servers.

Getting Started

In your package.json, add a postinstall hook to run the download chromium script:

"scripts": {
  ...
  "pretest": "npm run install-chromium",
  "install-chromium": "node node_modules/ember-chromium/download-chrome.js"
}

then simply run npm install on your project.

Usage

You can run just the default behavior by doing the following in testem.js:

module.exports = require('ember-chromium').getTestemConfig();

That's it!

You can further customize the chromium as follows:

const chromium = require('ember-chromium');
const myCustomReporter = require('some-test-reporter');

// any chromium flags you want
const chromiumArgs = [
  '--disable-gpu',
  '--no-sandbox',
  '--disable-gesture-requirement-for-media-playback',
  '--allow-file-access',
  '--use-fake-device-for-media-stream',
  '--use-fake-ui-for-media-stream'
];

const config = chromium.getTestemConfig(chromiumArgs);
config.reporter = myCustomReporter;

module.export = config;

Once you have the default config, you can manipulate as fits your needs.

FAQs

Package last updated on 27 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc