Skip to content

Commit b8e6da5

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

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

buildspec.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ phases:
66
nodejs: 10
77
commands:
88
- npm install -g yarn
9+
- curl https://intoli.com/install-google-chrome.sh | bash #TODO: install headless chrome to codebuild image
910
build:
1011
commands:
1112
- echo Building...

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/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)