Skip to content

Commit

Permalink
Deploy website
Browse files Browse the repository at this point in the history
Deploy website version based on 0c0db79
  • Loading branch information
relay-bot committed Jul 10, 2020
1 parent 6937c90 commit b7c351c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/en/next/testing-relay-components.html
Expand Up @@ -240,7 +240,7 @@ <h3><a class="anchor" aria-hidden="true" id="relay-component-test"></a><a href="
});
</code></pre>
<h3><a class="anchor" aria-hidden="true" id="fragment-container-tests"></a><a href="#fragment-container-tests" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Fragment Container Tests</h3>
<p>Essentially, in the example above will <code>resolveMostRecentOperation</code> will generate data for all child fragment containers (pagination, refetch). But, usually the Root Components container may have many child fragment components and you may want to exercise a specific Fragment Container. The solution for that would be to wrap you fragment container with the QueryRenderer that renders a Query that's spreads fragments from you fragment container.</p>
<p>Essentially, in the example above will <code>resolveMostRecentOperation</code> will generate data for all child fragment containers (pagination, refetch). But, usually the Root Components container may have many child fragment components and you may want to exercise a specific Fragment Container. The solution for that would be to wrap your fragment container with the QueryRenderer that renders a Query that's spreads fragments from your fragment container.</p>
<pre><code class="hljs css language-javascript">test(<span class="hljs-string">'Fragment Container'</span>, () =&gt; {
<span class="hljs-keyword">const</span> environment = createMockEnvironment();
<span class="hljs-keyword">const</span> TestRenderer = <span class="hljs-function"><span class="hljs-params">()</span> =&gt;</span> (
Expand Down Expand Up @@ -475,7 +475,7 @@ <h3><a class="anchor" aria-hidden="true" id="example-with-queueoperationresolver
});

</code></pre>
</span></div></article></div><div class="docLastUpdate"><em>Last updated on 6/3/2020 by Seshan Pillay</em></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/en/next/type-emission"><span class="arrow-prev"></span><span>Type Emission</span></a><a class="docs-next button" href="/docs/en/next/local-state-management"><span>Local State Management</span><span class="arrow-next"></span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#testing-with-relay">Testing with Relay</a></li><li><a href="#relaymockenvironment-api-overview">RelayMockEnvironment API Overview</a></li><li><a href="#mock-payload-generator-and-relay_test_operation-directive">Mock Payload Generator and @relay_test_operation Directive</a><ul class="toc-headings"><li><a href="#mock-resolver-context">Mock Resolver Context</a></li><li><a href="#id-generation">ID Generation</a></li><li><a href="#relay_test_operation">@relay_test_operation</a></li></ul></li><li><a href="#examples">Examples</a><ul class="toc-headings"><li><a href="#relay-component-test">Relay Component Test</a></li><li><a href="#fragment-container-tests">Fragment Container Tests</a></li><li><a href="#pagination-container-test">Pagination Container Test</a></li><li><a href="#refetch-container">Refetch Container</a></li><li><a href="#mutations">Mutations</a></li><li><a href="#subscription">Subscription</a></li><li><a href="#example-with-queueoperationresolver">Example with <code>queueOperationResolver</code></a></li></ul></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/" class="nav-home"><img src="/img/relay.svg" alt="Relay" width="66" height="58"/></a><div><h5>Docs</h5><a href="/docs/en/introduction-to-relay.html">Introduction</a></div><div><h5>Community</h5><a href="/en/users.html">User Showcase</a></div><div><h5>More</h5><a href="https://github.com/facebook/relay">GitHub</a><a class="github-button" href="https://github.com/facebook/relay" data-icon="octicon-star" data-count-href="/facebook/relay/stargazers" data-count-api="/repos/facebook/relay#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star this project on GitHub">Star</a></div></section><a href="https://code.facebook.com/projects/" target="_blank" class="fbOpenSource"><img src="/img/oss_logo.png" alt="Facebook Open Source" width="170" height="45"/></a><section class="copyright">Copyright © 2020 Facebook Inc.</section></footer></div><script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
</span></div></article></div><div class="docLastUpdate"><em>Last updated on 7/10/2020 by Chris Barton</em></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/en/next/type-emission"><span class="arrow-prev"></span><span>Type Emission</span></a><a class="docs-next button" href="/docs/en/next/local-state-management"><span>Local State Management</span><span class="arrow-next"></span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#testing-with-relay">Testing with Relay</a></li><li><a href="#relaymockenvironment-api-overview">RelayMockEnvironment API Overview</a></li><li><a href="#mock-payload-generator-and-relay_test_operation-directive">Mock Payload Generator and @relay_test_operation Directive</a><ul class="toc-headings"><li><a href="#mock-resolver-context">Mock Resolver Context</a></li><li><a href="#id-generation">ID Generation</a></li><li><a href="#relay_test_operation">@relay_test_operation</a></li></ul></li><li><a href="#examples">Examples</a><ul class="toc-headings"><li><a href="#relay-component-test">Relay Component Test</a></li><li><a href="#fragment-container-tests">Fragment Container Tests</a></li><li><a href="#pagination-container-test">Pagination Container Test</a></li><li><a href="#refetch-container">Refetch Container</a></li><li><a href="#mutations">Mutations</a></li><li><a href="#subscription">Subscription</a></li><li><a href="#example-with-queueoperationresolver">Example with <code>queueOperationResolver</code></a></li></ul></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/" class="nav-home"><img src="/img/relay.svg" alt="Relay" width="66" height="58"/></a><div><h5>Docs</h5><a href="/docs/en/introduction-to-relay.html">Introduction</a></div><div><h5>Community</h5><a href="/en/users.html">User Showcase</a></div><div><h5>More</h5><a href="https://github.com/facebook/relay">GitHub</a><a class="github-button" href="https://github.com/facebook/relay" data-icon="octicon-star" data-count-href="/facebook/relay/stargazers" data-count-api="/repos/facebook/relay#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star this project on GitHub">Star</a></div></section><a href="https://code.facebook.com/projects/" target="_blank" class="fbOpenSource"><img src="/img/oss_logo.png" alt="Facebook Open Source" width="170" height="45"/></a><section class="copyright">Copyright © 2020 Facebook Inc.</section></footer></div><script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
document.addEventListener('keyup', function(e) {
if (e.target !== document.body) {
return;
Expand Down
4 changes: 2 additions & 2 deletions docs/en/next/testing-relay-components/index.html
Expand Up @@ -240,7 +240,7 @@ <h3><a class="anchor" aria-hidden="true" id="relay-component-test"></a><a href="
});
</code></pre>
<h3><a class="anchor" aria-hidden="true" id="fragment-container-tests"></a><a href="#fragment-container-tests" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Fragment Container Tests</h3>
<p>Essentially, in the example above will <code>resolveMostRecentOperation</code> will generate data for all child fragment containers (pagination, refetch). But, usually the Root Components container may have many child fragment components and you may want to exercise a specific Fragment Container. The solution for that would be to wrap you fragment container with the QueryRenderer that renders a Query that's spreads fragments from you fragment container.</p>
<p>Essentially, in the example above will <code>resolveMostRecentOperation</code> will generate data for all child fragment containers (pagination, refetch). But, usually the Root Components container may have many child fragment components and you may want to exercise a specific Fragment Container. The solution for that would be to wrap your fragment container with the QueryRenderer that renders a Query that's spreads fragments from your fragment container.</p>
<pre><code class="hljs css language-javascript">test(<span class="hljs-string">'Fragment Container'</span>, () =&gt; {
<span class="hljs-keyword">const</span> environment = createMockEnvironment();
<span class="hljs-keyword">const</span> TestRenderer = <span class="hljs-function"><span class="hljs-params">()</span> =&gt;</span> (
Expand Down Expand Up @@ -475,7 +475,7 @@ <h3><a class="anchor" aria-hidden="true" id="example-with-queueoperationresolver
});

</code></pre>
</span></div></article></div><div class="docLastUpdate"><em>Last updated on 6/3/2020 by Seshan Pillay</em></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/en/next/type-emission"><span class="arrow-prev"></span><span>Type Emission</span></a><a class="docs-next button" href="/docs/en/next/local-state-management"><span>Local State Management</span><span class="arrow-next"></span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#testing-with-relay">Testing with Relay</a></li><li><a href="#relaymockenvironment-api-overview">RelayMockEnvironment API Overview</a></li><li><a href="#mock-payload-generator-and-relay_test_operation-directive">Mock Payload Generator and @relay_test_operation Directive</a><ul class="toc-headings"><li><a href="#mock-resolver-context">Mock Resolver Context</a></li><li><a href="#id-generation">ID Generation</a></li><li><a href="#relay_test_operation">@relay_test_operation</a></li></ul></li><li><a href="#examples">Examples</a><ul class="toc-headings"><li><a href="#relay-component-test">Relay Component Test</a></li><li><a href="#fragment-container-tests">Fragment Container Tests</a></li><li><a href="#pagination-container-test">Pagination Container Test</a></li><li><a href="#refetch-container">Refetch Container</a></li><li><a href="#mutations">Mutations</a></li><li><a href="#subscription">Subscription</a></li><li><a href="#example-with-queueoperationresolver">Example with <code>queueOperationResolver</code></a></li></ul></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/" class="nav-home"><img src="/img/relay.svg" alt="Relay" width="66" height="58"/></a><div><h5>Docs</h5><a href="/docs/en/introduction-to-relay.html">Introduction</a></div><div><h5>Community</h5><a href="/en/users.html">User Showcase</a></div><div><h5>More</h5><a href="https://github.com/facebook/relay">GitHub</a><a class="github-button" href="https://github.com/facebook/relay" data-icon="octicon-star" data-count-href="/facebook/relay/stargazers" data-count-api="/repos/facebook/relay#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star this project on GitHub">Star</a></div></section><a href="https://code.facebook.com/projects/" target="_blank" class="fbOpenSource"><img src="/img/oss_logo.png" alt="Facebook Open Source" width="170" height="45"/></a><section class="copyright">Copyright © 2020 Facebook Inc.</section></footer></div><script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
</span></div></article></div><div class="docLastUpdate"><em>Last updated on 7/10/2020 by Chris Barton</em></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/en/next/type-emission"><span class="arrow-prev"></span><span>Type Emission</span></a><a class="docs-next button" href="/docs/en/next/local-state-management"><span>Local State Management</span><span class="arrow-next"></span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#testing-with-relay">Testing with Relay</a></li><li><a href="#relaymockenvironment-api-overview">RelayMockEnvironment API Overview</a></li><li><a href="#mock-payload-generator-and-relay_test_operation-directive">Mock Payload Generator and @relay_test_operation Directive</a><ul class="toc-headings"><li><a href="#mock-resolver-context">Mock Resolver Context</a></li><li><a href="#id-generation">ID Generation</a></li><li><a href="#relay_test_operation">@relay_test_operation</a></li></ul></li><li><a href="#examples">Examples</a><ul class="toc-headings"><li><a href="#relay-component-test">Relay Component Test</a></li><li><a href="#fragment-container-tests">Fragment Container Tests</a></li><li><a href="#pagination-container-test">Pagination Container Test</a></li><li><a href="#refetch-container">Refetch Container</a></li><li><a href="#mutations">Mutations</a></li><li><a href="#subscription">Subscription</a></li><li><a href="#example-with-queueoperationresolver">Example with <code>queueOperationResolver</code></a></li></ul></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="sitemap"><a href="/" class="nav-home"><img src="/img/relay.svg" alt="Relay" width="66" height="58"/></a><div><h5>Docs</h5><a href="/docs/en/introduction-to-relay.html">Introduction</a></div><div><h5>Community</h5><a href="/en/users.html">User Showcase</a></div><div><h5>More</h5><a href="https://github.com/facebook/relay">GitHub</a><a class="github-button" href="https://github.com/facebook/relay" data-icon="octicon-star" data-count-href="/facebook/relay/stargazers" data-count-api="/repos/facebook/relay#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star this project on GitHub">Star</a></div></section><a href="https://code.facebook.com/projects/" target="_blank" class="fbOpenSource"><img src="/img/oss_logo.png" alt="Facebook Open Source" width="170" height="45"/></a><section class="copyright">Copyright © 2020 Facebook Inc.</section></footer></div><script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script><script>
document.addEventListener('keyup', function(e) {
if (e.target !== document.body) {
return;
Expand Down

0 comments on commit b7c351c

Please sign in to comment.