diff --git a/package.json b/package.json index 33270fd5f0..738c65ac3d 100644 --- a/package.json +++ b/package.json @@ -188,6 +188,7 @@ "simple-keyboard": "3.5.33", "steam-shortcut-editor": "3.1.1", "tslib": "2.5.0", + "xvfb-maybe": "^0.2.1", "zod": "3.21.4" }, "scripts": { @@ -197,7 +198,7 @@ "test": "jest", "test-watch": "jest --watch --maxWorkers=25%", "test:ci": "jest --runInBand --silent", - "test:e2e": "vite build && cross-env CI=e2e playwright test", + "test:e2e": "vite build && cross-env CI=e2e xvfb-maybe -- playwright test", "release:linux": "vite build && electron-builder -p always --linux deb AppImage rpm pacman tar.xz snap", "release:mac": "vite build && electron-builder -p always --mac --x64 --arm64", "release:win": "vite build && electron-builder -p always --win portable --x64", diff --git a/yarn.lock b/yarn.lock index d3f48754ab..dc998b482e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9086,6 +9086,13 @@ which-typed-array@^1.1.11, which-typed-array@^1.1.13, which-typed-array@^1.1.9: gopd "^1.0.1" has-tostringtag "^1.0.0" +which@^1.2.4: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + which@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" @@ -9158,6 +9165,14 @@ xtend@^4.0.0, xtend@~4.0.0, xtend@~4.0.1: resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== +xvfb-maybe@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/xvfb-maybe/-/xvfb-maybe-0.2.1.tgz#ed8cb132957b7848b439984c66f010ea7f24361b" + integrity sha512-9IyRz3l6Qyhl6LvnGRF5jMPB4oBEepQnuzvVAFTynP6ACLLSevqigICJ9d/+ofl29m2daeaVBChnPYUnaeJ7yA== + dependencies: + debug "^2.2.0" + which "^1.2.4" + y18n@^5.0.5: version "5.0.8" resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"