Skip to content

Commit

Permalink
Add new error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Dec 15, 2024
1 parent 39125be commit 33e30af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion packages/toolkit/src/query/tests/buildHooks.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/src/query/tests/infiniteQueries.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<InfiniteQueryResultFlags>,
Expand Down

0 comments on commit 33e30af

Please sign in to comment.