Skip to content

Commit 9d7cb49

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

karma.conf.js

Lines changed: 5 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,9 @@ module.exports = function (config) {
1717
},
1818

1919
listenAddress: "::",
20+
ChromeHeadlessNoSandbox: {
21+
base: "ChromeHeadless",
22+
flags: ["--no-sandbox"],
23+
},
2024
});
2125
};

0 commit comments

Comments
 (0)