From 077452e5e77ba47822f235f18742fe2a8ff239bd Mon Sep 17 00:00:00 2001 From: Rodrigo Vilar Date: Fri, 28 Jan 2022 23:39:14 +0100 Subject: [PATCH] adjust puppeteer options for linux --- Gruntfile.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index f09df1c7e4..f6afe216fe 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -376,7 +376,14 @@ module.exports = (grunt) => { // Run unit tests on the command line by loading tests/flow-headless-browser.html. // Requires the CJS build to be present in the `build/cjs/` directory (See: grunt build:cjs). // The grunt-contrib-qunit package uses puppeteer to load the test page. - qunit: { files: ['tests/flow-headless-browser.html'] }, + qunit: { + options: { + puppeteer: { + args: ['--no-sandbox', '--disable-setuid-sandbox'], + }, + }, + files: ['tests/flow-headless-browser.html'], + }, copy: { // grunt copy:reference // After `grunt test` call this to save the current build/ to reference/.