Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
ember-chromium
Advanced tools
One place to hold all the logic to download and run ember tests in 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.
Install ember-chromium as a dev dependency via npm/yarn
$ npm install ember-chromium --save-dev
# -or-
$ yarn add ember-chromium --dev
In your package.json
, add a pretest
script to run the install-chromium
script.
"scripts": {
// ...
"pretest": "npm run install-chromium",
// -or-
"pretest": "yarn run install-chromium",
}
[Note:] When installed, ember-chromium links the install-chromium
script into <project-root>/node-modules/.bin
. This directory is on the npm/yarn script path and can be called directly.
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
One place to hold all the logic to download and run ember tests in chromium
The npm package ember-chromium receives a total of 0 weekly downloads. As such, ember-chromium popularity was classified as not popular.
We found that ember-chromium demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.