Skip to content

Commit a23cc08

Browse files
committed
feat: update Karma configuration to use ChromeHeadlessNoSandbox for improved compatibility
1 parent ec7288f commit a23cc08

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

karma.conf.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ process.env.CHROME_BIN = require("puppeteer").executablePath();
22

33
module.exports = function (config) {
44
config.set({
5-
browsers: ["ChromeHeadless"],
5+
browsers: ["ChromeHeadlessNoSandbox"],
66

77
frameworks: ["mocha", "chai"],
88

@@ -17,5 +17,11 @@ module.exports = function (config) {
1717
},
1818

1919
listenAddress: "::",
20+
customLaunchers: {
21+
ChromeHeadlessNoSandbox: {
22+
base: "ChromeHeadless",
23+
flags: ["--no-sandbox"],
24+
},
25+
},
2026
});
2127
};

0 commit comments

Comments
 (0)