From dbbc8845da9155bd651e0529da9e5b91b7f7ba87 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Fri, 26 Jan 2024 16:42:01 +0000 Subject: [PATCH] Fix build --- dist/index.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 959d965..6b85f9d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3953,6 +3953,7 @@ const exec = __nccwpck_require__(514); async function main() { try { if (process.platform == "linux") { + await exec.exec("sudo apt-get update"); await exec.exec("sudo apt-get install -y xvfb x11-xserver-utils"); } diff --git a/package.json b/package.json index 4b072bc..b23eac7 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Run your tests headlessly", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "npx ncc build index.js" }, "keywords": [], "author": {