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 @@
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.