Skip to content

Commit

Permalink
Build commit 428f8f3
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Jul 18, 2024
1 parent 0ff263f commit 1c5895c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions api/config/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,18 @@ <h3 id="flat-preconfig">Flat preconfig</h3>
<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">qunit_config_filter</span><span class="o">=</span>foo <span class="nv">qunit_config_testtimeout</span><span class="o">=</span>1000 qunit test.js
</code></pre></div></div>

<p>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 <code class="language-plaintext highlighter-rouge">npm run</code> shortcuts in <code class="language-plaintext highlighter-rouge">package.json</code>, like so:</p>

<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w">
</span><span class="nl">"scripts"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w">
</span><span class="nl">"test-something"</span><span class="p">:</span><span class="w"> </span><span class="s2">"qunit_config_filter=something npm run test"</span><span class="p">,</span><span class="w">
</span><span class="nl">"test"</span><span class="p">:</span><span class="w"> </span><span class="s2">"npm run lint &amp;&amp; qunit"</span><span class="p">,</span><span class="w">
</span><span class="nl">"lint"</span><span class="p">:</span><span class="w"> </span><span class="s2">"eslint --cache ."</span><span class="p">,</span><span class="w">
</span><span class="nl">"lint-fix"</span><span class="p">:</span><span class="w"> </span><span class="s2">"eslint --cache --fix ."</span><span class="w">
</span><span class="p">}</span><span class="w">
</span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

<p>Configuration options that are read-only, internal/undocumented, or that require an object value (such as <a href="/api/config/storage/"><code class="language-plaintext highlighter-rouge">QUnit.config.storage</code></a>) cannot be set via environment variables. Options that require an array of strings will be converted to an array holding the given string.</p>

<h3 id="object-preconfig">Object preconfig</h3>
Expand Down
2 changes: 1 addition & 1 deletion feed.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="4.3.3">Jekyll</generator><link href="https://qunitjs.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://qunitjs.com/" rel="alternate" type="text/html" hreflang="en" /><updated>2024-07-18T18:49:21+00:00</updated><id>https://qunitjs.com/feed.xml</id><title type="html">QUnit</title><subtitle>The powerful, easy-to-use JavaScript testing framework.</subtitle></feed>
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="4.3.3">Jekyll</generator><link href="https://qunitjs.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://qunitjs.com/" rel="alternate" type="text/html" hreflang="en" /><updated>2024-07-18T19:53:41+00:00</updated><id>https://qunitjs.com/feed.xml</id><title type="html">QUnit</title><subtitle>The powerful, easy-to-use JavaScript testing framework.</subtitle></feed>

0 comments on commit 1c5895c

Please sign in to comment.