From b9d5efcd27e1019e9ab8c7fab8b71f0c75665b9a Mon Sep 17 00:00:00 2001
From: Paolo Caleffi
Date: Mon, 30 May 2022 16:24:43 +0200
Subject: [PATCH] fix(testing): manage undefined value on dev param, fix #216
---
packages/testing/src/index.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/packages/testing/src/index.js b/packages/testing/src/index.js
index cf2ca782..01a527d5 100644
--- a/packages/testing/src/index.js
+++ b/packages/testing/src/index.js
@@ -2,7 +2,7 @@ module.exports = async function (api) {
api.compatibleWith('quasar', '^2.0.0');
if (api.hasVite) {
- api.compatibleWith('@quasar/app-vite', '^1.0.0-beta.8');
+ api.compatibleWith('@quasar/app-vite', '^1.0.0');
} else if (api.hasWebpack) {
// TODO: should be "@quasar/app-webpack" but that is not backward compatible
// Remove when Qv3 comes out
@@ -92,12 +92,11 @@ module.exports = async function (api) {
process.exit(hasFailed ? 1 : 0);
};
- // If --dev was passed or e2e-webdriver / security-zap tests are being run
+ // If --dev was passed or security-zap tests are being run
// Cypress already spawns it's dev server
// TODO: use start-test for all harnesses needing quasar devServer running?
if (
- args.dev !== null ||
- args.e2e.includes('webdriver') ||
+ (args.dev !== null && args.dev !== undefined) ||
args.security.includes('zap')
) {
// Start dev server