Skip to content

Instantly share code, notes, and snippets.

@Borzilov
Last active November 30, 2019 23:21
Show Gist options
  • Save Borzilov/4b26e2e9633622b8d139a7a8925a72c0 to your computer and use it in GitHub Desktop.
Save Borzilov/4b26e2e9633622b8d139a7a8925a72c0 to your computer and use it in GitHub Desktop.
Prevents KARMA hanging on MacOS
//yarn add -D puppeteer karma-chrome-launcher
process.env.CHROME_BIN = require('puppeteer').executablePath();
// ...
{
browsers: ['ChromeNoSandbox'],
customLaunchers: {
ChromeNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox','--disable-dev-shm-usage'],
},
}
}
// https://github.com/karma-runner/karma-chrome-launcher/issues/154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment