
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@chiragrupani/karma-chromium-edge-launcher
Advanced tools
A Karma plugin. Launcher for different Chromium Edge channels - Dev, Canary, Beta and Stable
Launcher for Chromium Edge Canary, Dev, Beta and Stable channels for Windows OS, Mac OS and Linux OS
Available in NPM Registry
Install the package as dev-dependency
npm i -D @chiragrupani/karma-chromium-edge-launcher
Update Karma.conf.js
replace or append to array of browsers and add require plugin as below:
// karma.conf.js
module.exports = function (config) {
config.set({
- browsers: ['Chrome'],
+ browsers: ['Edge'],
plugins: [
- require('karma-chrome-launcher'),
+ require('@chiragrupani/karma-chromium-edge-launcher'),
],
});
};
Following browser channels are supported, add corresponding string in browsers:
If you want to launch browser in headless mode, below is correspondling list:
If you want to explicity specify the path for browser installation, set environment variable from this list, corresponding to release channel:
EDGE_BIN, EDGE_BETA_BIN, EDGE_DEV_BIN, EDGE_CANARY_BIN
Example:
# Add at top of karma.conf.js
process.env.EDGE_DEV_BIN =
"C:\\Program Files (x86)\\Microsoft\\Edge Dev\\Application\\msedge.exe";
That's all is required to use Karma with Chromium Edge browser.
The browser can also be specified with npm test
commmand like below:
"coverage": "ng t --no-watch --code-coverage --reporters=junit,coverage-istanbul --browsers=EdgeHeadless --progress=false"
In case if you want to build package from github source
# Clone/download the package
# Run in clonned directory to install dependencies
npm install
# Run in clonned directory
npm run package # Generates package in tgz format
# Run in angular project
# Provide path to tgz file generated in earlier step
npm install -g <path/to/tgz>
The project is based on karma-chrome-launcher as most of flags/configs for Chromium Edge are similar to Chrome browser
For more information on Karma see the homepage.
FAQs
A Karma plugin. Launcher for different Chromium Edge channels - Dev, Canary, Beta and Stable
The npm package @chiragrupani/karma-chromium-edge-launcher receives a total of 6,983 weekly downloads. As such, @chiragrupani/karma-chromium-edge-launcher popularity was classified as popular.
We found that @chiragrupani/karma-chromium-edge-launcher demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.