diff --git a/errors.json b/errors.json index 3c3d953125..082897b010 100644 --- a/errors.json +++ b/errors.json @@ -38,5 +38,7 @@ "36": "When using custom hooks for context, all hooks need to be provided: .\\nHook was either not provided or not a function.", "37": "Warning: Middleware for RTK-Query API at reducerPath \"\" has not been added to the store.\n You must add the middleware for RTK-Query to function correctly!", "38": "Cannot refetch a query that has not been started yet.", - "39": "called \\`injectEndpoints\\` to override already-existing endpointName without specifying \\`overrideExisting: true\\`" + "39": "called \\`injectEndpoints\\` to override already-existing endpointName without specifying \\`overrideExisting: true\\`", + "40": "maxPages for endpoint '' must be a number greater than 0", + "41": "getPreviousPageParam for endpoint '' must be a function if maxPages is used" } \ No newline at end of file diff --git a/packages/toolkit/src/query/tests/buildHooks.test.tsx b/packages/toolkit/src/query/tests/buildHooks.test.tsx index 2180114ad6..044d4c970a 100644 --- a/packages/toolkit/src/query/tests/buildHooks.test.tsx +++ b/packages/toolkit/src/query/tests/buildHooks.test.tsx @@ -1782,7 +1782,7 @@ describe('hooks tests', () => { ) }) - test.only('useInfiniteQuery fetchNextPage Trigger', async () => { + test('useInfiniteQuery fetchNextPage Trigger', async () => { const storeRef = setupApiStore(pokemonApi, undefined, { withoutTestLifecycles: true, }) diff --git a/packages/toolkit/src/query/tests/infiniteQueries.test.ts b/packages/toolkit/src/query/tests/infiniteQueries.test.ts index 5178f7588c..2fc891e870 100644 --- a/packages/toolkit/src/query/tests/infiniteQueries.test.ts +++ b/packages/toolkit/src/query/tests/infiniteQueries.test.ts @@ -140,7 +140,7 @@ describe('Infinite queries', () => { process.env.NODE_ENV = 'test' }) - test.only('Basic infinite query behavior', async () => { + test('Basic infinite query behavior', async () => { const checkFlags = ( value: unknown, expectedFlags: Partial,