diff --git a/buildspec.yml b/buildspec.yml index 869bb9059bf0..90f74ff8f141 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 d1764ba21d8f..f5e9e65c0ec6 100644 --- a/package.json +++ b/package.json @@ -56,10 +56,8 @@ "clients/*" ], "nohoist": [ - "**/karma", - "**/karma/**", - "**/karma-*", - "**/karma-*/**" + "**/karma*", + "**/karma*/**" ] }, "husky": { diff --git a/packages/hash-blob-browser/package.json b/packages/hash-blob-browser/package.json index 7a0d17cba2d2..50e92e038372 100644 --- a/packages/hash-blob-browser/package.json +++ b/packages/hash-blob-browser/package.json @@ -4,7 +4,7 @@ "scripts": { "prepublishOnly": "tsc", "pretest": "tsc", - "test": "karma start karma.conf.js" + "test": "karma start karma.conf.js --browsers ChromeHeadlessNoSandbox" }, "main": "./build/index.js", "types": "./build/index.d.ts", diff --git a/packages/stream-collector-browser/karma.conf.js b/packages/stream-collector-browser/karma.conf.js index 9f34498cd6ae..beda0d109706 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: { diff --git a/packages/stream-collector-browser/package.json b/packages/stream-collector-browser/package.json index 10a3a053b9ee..621bcad2dfcf 100644 --- a/packages/stream-collector-browser/package.json +++ b/packages/stream-collector-browser/package.json @@ -5,7 +5,7 @@ "scripts": { "prepublishOnly": "tsc", "pretest": "tsc -p tsconfig.json", - "test": "karma start karma.conf.js" + "test": "karma start karma.conf.js --browsers ChromeHeadlessNoSandbox" }, "author": { "name": "AWS SDK for JavaScript Team",