diff --git a/buildspec.yml b/buildspec.yml index 869bb9059bf01..90f74ff8f1416 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -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... diff --git a/package.json b/package.json index d1764ba21d8f0..f5e9e65c0ec64 100644 --- a/package.json +++ b/package.json @@ -56,10 +56,8 @@ "clients/*" ], "nohoist": [ - "**/karma", - "**/karma/**", - "**/karma-*", - "**/karma-*/**" + "**/karma*", + "**/karma*/**" ] }, "husky": { diff --git a/packages/stream-collector-browser/karma.conf.js b/packages/stream-collector-browser/karma.conf.js index 9f34498cd6aea..beda0d109706c 100644 --- a/packages/stream-collector-browser/karma.conf.js +++ b/packages/stream-collector-browser/karma.conf.js @@ -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: {