Skip to content

Commit

Permalink
fix: use chromeheadless not sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Jan 15, 2020
1 parent b1cde9b commit b8e6da5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ phases:
nodejs: 10
commands:
- npm install -g yarn
- curl https://intoli.com/install-google-chrome.sh | bash #TODO: install headless chrome to codebuild image
build:
commands:
- echo Building...
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@
"clients/*"
],
"nohoist": [
"**/karma",
"**/karma/**",
"**/karma-*",
"**/karma-*/**"
"**/karma*",
"**/karma*/**"
]
},
"husky": {
Expand Down
8 changes: 7 additions & 1 deletion packages/stream-collector-browser/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ module.exports = function(config) {
"**/*.ts": "karma-typescript"
},
reporters: ["progress", "karma-typescript"],
browsers: ["ChromeHeadless"],
browsers: ["ChromeHeadlessNoSandbox"],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: "ChromeHeadless",
flags: ["--no-sandbox"]
}
},
karmaTypescriptConfig: {
tsconfig: "./tsconfig.json",
bundlerOptions: {
Expand Down

0 comments on commit b8e6da5

Please sign in to comment.