Test React Canary #917
Annotations
10 errors
          | 
                      
                          useSWR - suspense › should render correctly when key changes (but with same response data): 
                        test/use-swr-suspense.test.tsx#L238
                      
                       Unable to find an element with the text: 123,1. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
  <div>
    <div>
      fallback
    </div>
  </div>
</body>
    at waitForWrapper (node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
    at Object.findByText (test/use-swr-suspense.test.tsx:238:18) | 
| 
                      
                          useSWR - suspense › should pause when key changes: 
                        test/use-swr-suspense.test.tsx#L206
                      
                       Unable to find an element with the text: data: swr-key-3578729. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
  <div>
    <div>
      fallback
    </div>
  </div>
</body>
    at waitForWrapper (node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
    at Object.findByText (test/use-swr-suspense.test.tsx:206:18) | 
| 
                      
                          useSWR - suspense › should throw errors: 
                        test/use-swr-suspense.test.tsx#L117
                      
                       Unable to find an element with the text: error boundary. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
  <div>
    <div>
      fallback
    </div>
  </div>
</body>
    at waitForWrapper (node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
    at Object.findByText (test/use-swr-suspense.test.tsx:117:18) | 
| 
                      
                          useSWR - suspense › should work for non-promises: 
                        test/use-swr-suspense.test.tsx#L88
                      
                       Unable to find an element with the text: hello. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
  <div>
    <div>
      fallback
    </div>
  </div>
</body>
    at waitForWrapper (node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
    at Object.findByText (test/use-swr-suspense.test.tsx:88:18) | 
| 
                      
                          useSWR - suspense › should render multiple SWR fallbacks: 
                        test/use-swr-suspense.test.tsx#L71
                      
                       TestingLibraryElementError: Unable to find an element with the text: 3. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
  <div>
    <div>
      fallback
    </div>
  </div>
</body>
    at Object.getElementError (node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19)
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
    at Object.getByText (test/use-swr-suspense.test.tsx:71:12) | 
| 
                      
                          useSWR - suspense › should render fallback: 
                        test/use-swr-suspense.test.tsx#L37
                      
                       Unable to find an element with the text: SWR. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
  <div>
    <div>
      fallback
    </div>
  </div>
</body>
    at waitForWrapper (node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
    at Object.findByText (test/use-swr-suspense.test.tsx:37:18) | 
| 
                      
                          useSWR - preload › avoid suspense waterfall by prefetching the resources: 
                        test/use-swr-preload.test.tsx#L139
                      
                       TestingLibraryElementError: Unable to find an element with the text: data:foo:bar. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
  <div>
    loading
  </div>
</body>
    at Object.getElementError (node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19)
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
    at Object.getByText (test/use-swr-preload.test.tsx:139:12) | 
| 
                      
                          useSWR - preload › preload the fetcher function with the suspense mode: 
                        test/use-swr-preload.test.tsx#L102
                      
                       Unable to find an element with the text: data:foo. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
  <div>
    loading
  </div>
</body>
    at waitForWrapper (node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
    at Object.findByText (test/use-swr-preload.test.tsx:102:18) | 
| 
                      
                          useSWRInfinite - preload › preload the fetcher function with the suspense mode: 
                        test/use-swr-infinite-preload.test.tsx#L119
                      
                       Unable to find an element with the text: data:foo. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
  <div>
    loading
  </div>
</body>
    at waitForWrapper (node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
    at Object.findByText (test/use-swr-infinite-preload.test.tsx:119:18) | 
| 
                      
                          useSWRInfinite › should update the getKey reference with the suspense mode: 
                        test/use-swr-infinite.test.tsx#L1197
                      
                       Unable to find an element with the text: data: A1,A2,A3. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
  <div>
    loading
  </div>
</body>
    at waitForWrapper (node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:166:27)
    at node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:86:33
    at Object.findByText (test/use-swr-infinite.test.tsx:1197:18) |