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