From 1c5895cd587cf1393d4990d7aa880baf34a8537e Mon Sep 17 00:00:00 2001 From: Krinkle Date: Thu, 18 Jul 2024 19:53:44 +0000 Subject: [PATCH] Build commit 428f8f3807f69e58de630d37c6a748fd314b8121 --- api/config/index.html | 12 ++++++++++++ feed.xml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/api/config/index.html b/api/config/index.html index c324409e3..d5b734637 100644 --- a/api/config/index.html +++ b/api/config/index.html @@ -158,6 +158,18 @@

Flat preconfig

qunit_config_filter=foo qunit_config_testtimeout=1000 qunit test.js
 
+

The environment variables can also make it easy to pass a parameter to QUnit from a child or nested command. For example, if you have several npm run shortcuts in package.json, like so:

+ +
{
+  "scripts": {
+    "test-something": "qunit_config_filter=something npm run test",
+    "test": "npm run lint && qunit",
+    "lint": "eslint --cache .",
+    "lint-fix": "eslint --cache --fix ."
+  }
+}
+
+

Configuration options that are read-only, internal/undocumented, or that require an object value (such as QUnit.config.storage) cannot be set via environment variables. Options that require an array of strings will be converted to an array holding the given string.

Object preconfig

diff --git a/feed.xml b/feed.xml index 2c791e1f9..06eab025e 100644 --- a/feed.xml +++ b/feed.xml @@ -1 +1 @@ -Jekyll2024-07-18T18:49:21+00:00https://qunitjs.com/feed.xmlQUnitThe powerful, easy-to-use JavaScript testing framework. \ No newline at end of file +Jekyll2024-07-18T19:53:41+00:00https://qunitjs.com/feed.xmlQUnitThe powerful, easy-to-use JavaScript testing framework. \ No newline at end of file