From 204d747a751f16643297400bdc3beb77225fe696 Mon Sep 17 00:00:00 2001 From: Carl-Erik Kopseng Date: Wed, 11 Sep 2024 09:40:08 +0200 Subject: [PATCH] Supply correct config for Sauce Labs tests --- mochify.webdriver.cjs | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mochify.webdriver.cjs b/mochify.webdriver.cjs index efd3f8f01..5be25090f 100644 --- a/mochify.webdriver.cjs +++ b/mochify.webdriver.cjs @@ -1,4 +1,9 @@ "use strict"; +const assert = require("node:assert"); + +assert(process.env.BROWSER_NAME); +assert(process.env.SAUCE_USERNAME); +assert(process.env.SAUCE_ACCESS_KEY); module.exports = { driver: "webdriver", diff --git a/package.json b/package.json index bfd53a7be..dab2b2de6 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "test-dev": "npm run test-node -- -n watch -n watch-path=test --node-option watch-path=lib -R min", "test-headless": "mochify --driver puppeteer", "test-coverage": "nyc nyc --exclude-after-remap false mochify --driver puppeteer --bundle 'node coverage.cjs'", - "test-cloud": "npm run test-headless -- --wd", + "test-cloud": "mochify -C mochify.webdriver.cjs", "test-webworker": "mochify --driver puppeteer --serve . test/webworker/webworker-support-assessment.js", "test-esm-support": "mocha test/es2015/module-support-assessment-test.mjs", "test-esm-browser-build": "node test/es2015/check-esm-bundle-is-runnable.js",