From e9dad3d884e34f0a8e9eb0049f904fcb38155fc9 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Fri, 29 Jun 2018 01:43:13 +0000 Subject: [PATCH] Use Puppeteer's chrome install --- karma.conf.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index a2967aa7..85c48aa5 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,6 +1,7 @@ const fs = require("fs"); -function readJsonFile(path) { +process.env.CHROME_BIN = require('puppeteer').executablePath(); + // TypeScript puts lots of comments in the default `tsconfig.json`, so you // can’t use `require()` to read it. Hence this hack. return eval("(" + fs.readFileSync(path).toString("utf-8") + ")");