Add future flag for Single Fetch #1300
test-pr-windows-macos.yml
on: pull_request
Matrix: 👀 Integration Test / integration
Matrix: 👀 Integration Test / integration
Matrix: 👀 Integration Test / integration
Matrix: 🧪 Unit Test / test
Annotations
13 errors
loaders › removes _data from request.url:
packages/remix-server-runtime/server.ts#L129
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (server.ts:129:24)
at Object.handler (__tests__/data-test.ts:38:21)
|
loaders › sets X-Remix-Response header for returned 2xx response:
packages/remix-server-runtime/server.ts#L129
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (server.ts:129:24)
at Object.handler (__tests__/data-test.ts:77:21)
|
loaders › sets X-Remix-Response header for returned 2xx defer response:
packages/remix-server-runtime/server.ts#L129
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (server.ts:129:24)
at Object.handler (__tests__/data-test.ts:116:21)
|
loaders › sets X-Remix-Redirect header for returned 3xx redirect:
packages/remix-server-runtime/server.ts#L129
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (server.ts:129:24)
at Object.handler (__tests__/data-test.ts:158:21)
|
loaders › sets X-Remix-Catch header for throw responses:
packages/remix-server-runtime/server.ts#L129
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (server.ts:129:24)
at Object.handler (__tests__/data-test.ts:199:21)
|
loaders › sets X-Remix-Error header for throw error:
packages/remix-server-runtime/server.ts#L129
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (server.ts:129:24)
at Object.handler (__tests__/data-test.ts:238:21)
|
loaders › removes index from request.url:
packages/remix-server-runtime/server.ts#L129
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (server.ts:129:24)
at Object.handler (__tests__/data-test.ts:275:21)
|
loaders › removes index from request.url and keeps other values:
packages/remix-server-runtime/server.ts#L129
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (server.ts:129:24)
at Object.handler (__tests__/data-test.ts:309:21)
|
<ScrollRestoration /> › should render a <script> tag:
packages/remix-react/components.tsx#L704
TestingLibraryElementError: Unable to find an element by: [data-testid="scroll-script"]
Ignored nodes: comments, <script />, <style />
<body>
<div>
<h2>
Unexpected Application Error!
</h2>
<h3
style="font-style: italic;"
>
Cannot read properties of undefined (reading 'unstable_singleFetch')
</h3>
<pre
style="padding: 0.5rem; background-color: rgba(200, 200, 200, 0.5);"
>
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (components.tsx:704:31)
at mountMemo (../../node_modules/react-dom/cjs/react-dom.development.js:17225:19)
at Object.useMemo (../../node_modules/react-dom/cjs/react-dom.development.js:17670:16)
at Object.useMemo (../../node_modules/react/cjs/react.development.js:1650:21)
at useMemo (components.tsx:703:30)
at renderWithHooks (../../node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (../../node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (../../node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (../../node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (../../node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (../../node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (../../node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at recoverFromConcurrentError (../../node_modules/react-dom/cjs/react-dom.development.js:25850:20)
at performConcurrentWorkOnRoot (../../node_modules/react-dom/cjs/react-dom.development.js:25750:22)
at flushActQueue (../../node_modules/react/cjs/react.development.js:2667:24)
at act (../../node_modules/react/cjs/react.development.js:2582:11)
at ../../node_modules/@testing-library/react/dist/act-compat.js:63:25
at renderRoot (../../node_modules/@testing-library/react/dist/pure.js:159:26)
at render (../../node_modules/@testing-library/react/dist/pure.js:246:10)
at Object.<anonymous> (__tests__/scroll-restoration-test.tsx:64:11)
at new Promise (<anonymous>)
</pre>
<p>
💿 Hey developer 👋
</p>
<p>
You can provide a way better UX than this when your app throws errors by providing your own
<code
style="padding: 2px 4px; background-color: rgba(200, 200, 200, 0.5);"
>
ErrorBoundary
</code>
or
<code
style="padding: 2px 4px; background-color: rgba(200, 200, 200, 0.5);"
>
errorElement
</code>
prop on your route.
</p>
</div>
</body>
at Object.getElementError (../../node_modules/@testing-library/dom/dist/config.js:40:19)
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:90:38
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:62:17
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:111:19
at Object.getByTestId (__tests__/scroll-restoration-test.tsx:69:25)
|
<ScrollRestoration /> › should pass props to <script>:
packages/remix-react/components.tsx#L704
TestingLibraryElementError: Unable to find an element by: [data-testid="scroll-script"]
Ignored nodes: comments, <script />, <style />
<body>
<div>
<h2>
Unexpected Application Error!
</h2>
<h3
style="font-style: italic;"
>
Cannot read properties of undefined (reading 'unstable_singleFetch')
</h3>
<pre
style="padding: 0.5rem; background-color: rgba(200, 200, 200, 0.5);"
>
TypeError: Cannot read properties of undefined (reading 'unstable_singleFetch')
at unstable_singleFetch (components.tsx:704:31)
at mountMemo (../../node_modules/react-dom/cjs/react-dom.development.js:17225:19)
at Object.useMemo (../../node_modules/react-dom/cjs/react-dom.development.js:17670:16)
at Object.useMemo (../../node_modules/react/cjs/react.development.js:1650:21)
at useMemo (components.tsx:703:30)
at renderWithHooks (../../node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (../../node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (../../node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (../../node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (../../node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (../../node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (../../node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at recoverFromConcurrentError (../../node_modules/react-dom/cjs/react-dom.development.js:25850:20)
at performConcurrentWorkOnRoot (../../node_modules/react-dom/cjs/react-dom.development.js:25750:22)
at flushActQueue (../../node_modules/react/cjs/react.development.js:2667:24)
at act (../../node_modules/react/cjs/react.development.js:2582:11)
at ../../node_modules/@testing-library/react/dist/act-compat.js:63:25
at renderRoot (../../node_modules/@testing-library/react/dist/pure.js:159:26)
at render (../../node_modules/@testing-library/react/dist/pure.js:246:10)
at Object.<anonymous> (__tests__/scroll-restoration-test.tsx:91:11)
at new Promise (<anonymous>)
</pre>
<p>
💿 Hey developer 👋
</p>
<p>
You can provide a way better UX than this when your app throws errors by providing your own
<code
style="padding: 2px 4px; background-color: rgba(200, 200, 200, 0.5);"
>
ErrorBoundary
</code>
or
<code
style="padding: 2px 4px; background-color: rgba(200, 200, 200, 0.5);"
>
errorElement
</code>
prop on your route.
</p>
</div>
</body>
at Object.getElementError (../../node_modules/@testing-library/dom/dist/config.js:40:19)
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:90:38
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:62:17
at ../../node_modules/@testing-library/dom/dist/query-helpers.js:111:19
at Object.getByTestId (__tests__/scroll-restoration-test.tsx:96:25)
|
👀 Integration Test / ubuntu-latest / [email protected] / firefox
Process completed with exit code 1.
|
👀 Integration Test / macos-latest / [email protected] / webkit
Process completed with exit code 1.
|
👀 Integration Test / windows-latest / [email protected] / msedge
Process completed with exit code 1.
|