Skip to content

Add example of lazy loading slices with combineSlices, and middleware with createDynamicMiddleware #7396

Add example of lazy loading slices with combineSlices, and middleware with createDynamicMiddleware

Add example of lazy loading slices with combineSlices, and middleware with createDynamicMiddleware #7396

Triggered via pull request October 25, 2024 08:16
Status Failure
Total duration 8m 50s
Artifacts 1

tests.yml

on: pull_request
Check for changes
4s
Check for changes
Matrix: build
Matrix: Check package config with are-the-types-wrong
Matrix: Test against dist
Matrix: test-published-artifact
Matrix: test-type-portability
Matrix: test-types
Fit to window
Zoom out
Zoom in

Annotations

3 errors
src/query/tests/buildHooks.test.tsx > hooks tests > usePrefetch > usePrefetch respects force arg: packages/toolkit/src/query/tests/buildHooks.test.tsx#L1696
AssertionError: expected { status: 'pending', …(10) } to deeply equal { data: { name: 'Timmy' }, …(10) } - Expected + Received Object { "data": Object { "name": "Timmy", }, "endpointName": "getUser", "fulfilledTimeStamp": Any<Number>, "isError": false, - "isLoading": false, - "isSuccess": true, + "isLoading": true, + "isSuccess": false, "isUninitialized": false, "originalArgs": 4, "requestId": Any<String>, "startedTimeStamp": Any<Number>, - "status": "fulfilled", + "status": "pending", } ❯ src/query/tests/buildHooks.test.tsx:1696:9
src/query/tests/buildHooks.test.tsx > hooks tests > usePrefetch > usePrefetch respects ifOlderThan when it evaluates to true: packages/toolkit/src/query/tests/buildHooks.test.tsx#L1832
AssertionError: expected { status: 'pending', …(10) } to deeply equal { data: { name: 'Timmy' }, …(10) } - Expected + Received Object { "data": Object { "name": "Timmy", }, "endpointName": "getUser", "fulfilledTimeStamp": Any<Number>, "isError": false, - "isLoading": false, - "isSuccess": true, + "isLoading": true, + "isSuccess": false, "isUninitialized": false, "originalArgs": 47, "requestId": Any<String>, "startedTimeStamp": Any<Number>, - "status": "fulfilled", + "status": "pending", } ❯ src/query/tests/buildHooks.test.tsx:1832:9
Test against dist (20.x)
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
package
1.15 MB