Last active
November 30, 2019 23:21
-
-
Save Borzilov/4b26e2e9633622b8d139a7a8925a72c0 to your computer and use it in GitHub Desktop.
Prevents KARMA hanging on MacOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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