Skip to content

Commit 5cb1cd6

Browse files
authored
fix: Pass no-sandbox flag to electron mocha to make sure tests can run on RHEL (#2689)
1 parent 15d4e20 commit 5cb1cd6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/compass-saved-aggregations-queries/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"check": "npm run typecheck && npm run lint && npm run depcheck",
4444
"check-ci": "npm run check",
4545
"test": "mocha",
46-
"test-electron": "xvfb-maybe electron-mocha",
46+
"test-electron": "xvfb-maybe electron-mocha --no-sandbox",
4747
"test-cov": "nyc -x \"**/*.spec.*\" npm run test",
4848
"test-watch": "npm run test -- --watch",
4949
"test-ci": "npm run test-electron && npm run test-cov",

scripts/create-workspace.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ async function main(argv) {
240240
check: 'npm run typecheck && npm run lint && npm run depcheck',
241241
'check-ci': 'npm run check',
242242
test: 'mocha',
243-
...(isPlugin && { 'test-electron': 'xvfb-maybe electron-mocha' }),
243+
...(isPlugin && {
244+
'test-electron': 'xvfb-maybe electron-mocha --no-sandbox',
245+
}),
244246
'test-cov': 'nyc -x "**/*.spec.*" npm run test',
245247
'test-watch': 'npm run test -- --watch',
246248
'test-ci': isPlugin

0 commit comments

Comments
 (0)