From 6bb732ae528d3a94e27db536dc7819efd799dc75 Mon Sep 17 00:00:00 2001 From: Ned Schwartz Date: Wed, 16 Feb 2022 23:11:12 +0000 Subject: [PATCH] configure karma to use chromium --- test/karma.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/karma.config.js b/test/karma.config.js index 043be47..7b3d586 100755 --- a/test/karma.config.js +++ b/test/karma.config.js @@ -1,3 +1,5 @@ +process.env.CHROME_BIN = require('chromium').path + function checker(request, response, next) { if (request.method === 'POST' && request.url === '/ok') { response.setHeader('content-type', 'text/html') @@ -25,8 +27,8 @@ module.exports = function (config) { basePath: '..', frameworks: ['mocha', 'chai'], files: [ - {pattern: 'dist/index.js', type: 'module'}, - {pattern: 'test/test.js', type: 'module'} + { pattern: 'dist/index.js', type: 'module' }, + { pattern: 'test/test.js', type: 'module' } ], reporters: ['mocha'], port: 9876,