Skip to content

Commit d529151

Browse files
committed
fix: use chromeheadless not sandbox
reference: karma-runner/karma-chrome-launcher#158
1 parent b1cde9b commit d529151

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@
5656
"clients/*"
5757
],
5858
"nohoist": [
59-
"**/karma",
60-
"**/karma/**",
61-
"**/karma-*",
62-
"**/karma-*/**"
59+
"**/karma*",
60+
"**/karma*/**"
6361
]
6462
},
6563
"husky": {

packages/hash-blob-browser/karma.conf.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,13 @@ module.exports = function(config) {
4848
// enable / disable watching file and executing tests whenever any file changes
4949
autoWatch: false,
5050

51-
// start these browsers
52-
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
53-
browsers: ["ChromeHeadless"],
51+
browsers: ["ChromeHeadlessNoSandbox"],
52+
customLaunchers: {
53+
ChromeHeadlessNoSandbox: {
54+
base: "ChromeHeadless",
55+
flags: ["--no-sandbox"]
56+
}
57+
},
5458

5559
// Continuous Integration mode
5660
// if true, Karma captures browsers, runs the tests and exits

packages/stream-collector-browser/karma.conf.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ module.exports = function(config) {
88
"**/*.ts": "karma-typescript"
99
},
1010
reporters: ["progress", "karma-typescript"],
11-
browsers: ["ChromeHeadless"],
11+
browsers: ["ChromeHeadlessNoSandbox"],
12+
customLaunchers: {
13+
ChromeHeadlessNoSandbox: {
14+
base: "ChromeHeadless",
15+
flags: ["--no-sandbox"]
16+
}
17+
},
1218
karmaTypescriptConfig: {
1319
tsconfig: "./tsconfig.json",
1420
bundlerOptions: {

0 commit comments

Comments
 (0)