Wonsuk Choi
52ebbb3c7c
chore(oxlint.config): enable 'vitest/no-alias-methods' and replace 'toBeCalledWith' with 'toHaveBeenCalledWith' ( #12239 )
2026-10-21 15:15:13 +09:00
Wonsuk Choi
22d9966fba
chore(oxlint.config): enable 'vitest/prefer-called-with' and assert the call arguments with 'toHaveBeenCalledWith' ( #12237 )
2026-10-21 14:52:07 +09:00
Wonsuk Choi
25ed6ae410
chore(oxlint.config): enable 'vitest/prefer-expect-type-of' and assert the 'staleTime' type with 'toBeTypeOf' ( #12236 )
2026-10-21 14:50:52 +09:00
Wonsuk Choi
c51b851953
chore(oxlint.config): enable 'vitest/prefer-to-contain' and assert array membership with 'toContain' ( #12235 )
2026-10-21 14:48:52 +09:00
Wonsuk Choi
af28a1b461
chore(oxlint.config): enable 'vitest/prefer-equality-matcher' and compare the value directly with 'toBe' ( #12234 )
2026-10-21 14:48:38 +09:00
Wonsuk Choi
b7b29030c9
test(query-test-utils/sleep): use fake timers to assert it resolves exactly after the given time ( #12238 )
2026-10-21 14:48:06 +09:00
Wonsuk Choi
7e7a1c915e
chore(oxlint.config): enable 'vitest/require-to-throw-message' and assert the expected error messages in 'toThrow' ( #12233 )
2026-10-21 14:25:59 +09:00
Wonsuk Choi
1667b24614
chore(oxlint.config): enable vitest rules that already pass without violations ( #12232 )
2026-10-21 14:24:38 +09:00
Wonsuk Choi
01703ec5d1
test({react,preact}-query/useMutationState): add a test for updating when only the mutation state changes ( #12225 )
2026-10-21 12:23:08 +09:00
Wonsuk Choi
6d6b4f68c2
test(query-core/mutationObserver): add a test for calling 'mutate' inside 'onError' with the mutate options snapshot ( #12224 )
2026-10-21 12:22:50 +09:00
Wonsuk Choi
494a8f06e5
test(query-core/infiniteQueryObserver): add a test for 'fetchOptimistic' using the supplied infinite options after the query is recreated ( #12223 )
...
* test(query-core/infiniteQueryObserver): add a test for 'fetchOptimistic' using the supplied infinite options after the query is recreated
* test(query-core/infiniteQueryObserver): return a distinct value from the recreated query function in the 'fetchOptimistic' test
2026-10-21 12:22:38 +09:00
Wonsuk Choi
b20e5bc699
test(vue-query/useMutation): add a type test for the exported 'MutationResult' ( #12222 )
2026-10-21 12:22:25 +09:00
Wonsuk Choi
c808778d1d
test(vue-query-devtools/client): assert the client passed to 'setClient' by identity instead of deep equality ( #12221 )
2026-10-21 12:22:13 +09:00
Wonsuk Choi
3626bfc753
test(query-devtools): add isolation tests for mutation cache subscriptions on client changes and the offline toggle with a supplied online manager ( #12220 )
2026-10-21 12:22:01 +09:00
Wonsuk Choi
804309c39c
test(query-core/mutation): add tests for the retry and scope pause conditions of the retryer ( #12219 )
2026-10-21 12:21:53 +09:00
Wonsuk Choi
d28d4d29bd
test({react,preact,solid,svelte,lit}-query,angular-query-experimental): assert the data tag directly in the 'skipToken'-only 'queryOptions' type test ( #12218 )
...
* test({react,preact,solid,lit}-query,angular-query-experimental): assert the data tag directly in the 'skipToken'-only 'queryOptions' type test
* test(svelte-query/queryOptions): assert the data tag directly in the 'skipToken'-only type test
2026-10-21 10:45:16 +09:00
Wonsuk Choi
4762a62c7c
test(vue-query/queryOptions): add type tests for a conditional 'skipToken' and a 'skipToken'-only 'queryFn' ( #12216 )
...
* test(vue-query/queryOptions): add type tests for a conditional 'skipToken' and a 'skipToken'-only 'queryFn'
* test(vue-query/queryOptions): assert the data tag directly in the 'skipToken'-only type test
2026-10-21 10:35:45 +09:00
Wonsuk Choi
90e331decc
docs(vue-query/queryClient): add the descriptions of the deprecated 'ensureQueryData', 'fetchQuery', 'prefetchQuery', 'fetchInfiniteQuery', and 'prefetchInfiniteQuery' overrides ( #12212 )
2026-10-20 21:55:40 +09:00
Wonsuk Choi
7b9a85e595
docs(vue-query/queryClient): inherit the descriptions of the first overload on the 'MaybeRefDeep' overloads of 'getQueryData', 'setQueryData', 'query', and 'infiniteQuery' ( #12211 )
2026-10-20 21:50:40 +09:00
Wonsuk Choi
9162d7f499
docs({angular,preact,solid,svelte,vue}/installation): state the supported framework versions to match the peer dependency ranges ( #12210 )
2026-10-20 20:52:25 +09:00
Wonsuk Choi
67eaf77279
docs(lit/guides/testing): add the testing guide with 'QueryClientProvider' and fake timers ( #12206 )
...
* docs(lit/guides/testing): add the testing guide with 'QueryClientProvider' and fake timers
* docs(lit/guides/testing): add the imports to the controller and fake timers examples so each can be used as its own file
2026-10-20 19:58:57 +09:00
Wonsuk Choi
bd427b90b2
docs(svelte/testing): add the imports to the 'withEffectRoot' and fake timers examples so each can be used as its own file ( #12208 )
2026-10-20 19:58:01 +09:00
Wonsuk Choi
56432b4a22
docs: use 'sh' instead of 'bash' for the shell code blocks ( #12207 )
2026-10-20 17:21:27 +09:00
Wonsuk Choi
4c56e9eea5
docs(svelte/testing): add the testing guide with '$effect.root' and Svelte Testing Library ( #12205 )
...
* docs(svelte/testing): add the testing guide with '$effect.root' and Svelte Testing Library
* docs(svelte/testing): clean up the effect root in 'finally' and add the 'withEffectRoot' helper variant
* docs(svelte/testing): explain that testing a function on its own needs a 'QueryClient' accessor and point to the component approach otherwise
* docs(svelte/testing): share the query with 'queryOptions' instead of a wrapper function that takes a 'QueryClient' accessor
2026-10-20 16:32:49 +09:00
Wonsuk Choi
21654f27bd
docs(react/guides/testing): install '@testing-library/react' instead of the React 17 hooks library and remove the dangling 'waitFor' notes ( #12204 )
2026-10-20 16:04:18 +09:00
Wonsuk Choi
35c505a5f2
docs(angular/guides/testing): limit the 'whenStable' guidance to work that settles right away and point to fake timers for the rest ( #12203 )
2026-10-20 15:47:24 +09:00
Wonsuk Choi
b5fe9512df
docs(angular): use 'angular-ts' for the code blocks with '@Component' to highlight their templates ( #12202 )
2026-10-20 15:30:50 +09:00
Wonsuk Choi
5178ad4b1a
docs(react/guides/testing): fix the 'nock' chain order and the 'data.pages' assertions in the infinite query example ( #12200 )
2026-10-20 15:26:34 +09:00
Wonsuk Choi
a8f39eea4c
docs(angular/guides/testing): advance fake timers in the mutation example instead of awaiting 'whenStable' ( #12201 )
2026-10-20 15:26:14 +09:00
Wonsuk Choi
fb53a81e1c
docs(angular/guides/testing): advance fake timers instead of awaiting 'whenStable' in the component examples, and add Angular Testing Library and 'TestBed.runInInjectionContext' variants ( #12199 )
...
* docs(angular/guides/testing): advance fake timers and run 'detectChanges' in the component examples with 'TestBed' and Angular Testing Library instead of awaiting 'whenStable'
* docs(angular/guides/testing): add the 'TestBed.runInInjectionContext' variant to the component examples
2026-10-20 15:17:59 +09:00
Wonsuk Choi
ca77c9f699
docs(solid/guides/testing): add the testing guide with 'renderHook' from '@solidjs/testing-library' ( #12196 )
...
* docs(solid/guides/testing): add the testing guide with 'renderHook' from '@solidjs/testing-library'
* docs(solid/guides/testing): restore real timers in 'afterEach' in the fake timers example
2026-10-20 14:50:47 +09:00
Wonsuk Choi
608fca7426
docs(angular/guides/testing): advance fake timers in the infinite query example instead of awaiting 'whenStable' ( #12197 )
...
* docs(angular/guides/testing): advance fake timers in the infinite query example instead of awaiting 'whenStable'
* docs(angular/guides/testing): restore real timers in 'afterEach' in the infinite query example
2026-10-20 14:50:24 +09:00
Wonsuk Choi
047d82914c
docs(vue/guides/testing): restore real timers in 'afterEach' in the fake timers example ( #12198 )
2026-10-20 14:50:10 +09:00
Wonsuk Choi
64d3b15cc1
refactor(examples/lit/pagination): rename the 'onError' 'context' parameter to 'onMutateResult' ( #12195 )
2026-10-20 14:11:00 +09:00
Wonsuk Choi
88b3edde75
docs(lit/guides/mutations): rename the third 'onError' parameter from 'context' to 'onMutateResult' ( #12194 )
2026-10-20 14:10:46 +09:00
Wonsuk Choi
85f00d8731
docs(lit/guides/ssr): move inline 'type' specifiers to top-level 'import type' declarations ( #12193 )
2026-10-20 14:10:31 +09:00
Wonsuk Choi
fab1bc22d6
docs(lit/guides/query-keys): declare 'userId' in 'static properties' so changing it refetches ( #12192 )
2026-10-20 14:10:04 +09:00
Wonsuk Choi
1d016ddab7
docs(lit/{installation,typescript}): require 'useDefineForClassFields: false' so reactive properties initialized as class fields trigger updates ( #12191 )
2026-10-20 14:09:41 +09:00
Wonsuk Choi
93ecb10912
docs(lit/guides/query-functions): add 'as const' to the 'queryKey' so the destructured filters are typed ( #12190 )
2026-10-20 14:09:27 +09:00
Wonsuk Choi
81e6a935ae
fix(examples/lit/pagination): show the error message instead of the stringified error ( #12187 )
2026-10-20 12:19:40 +09:00
Wonsuk Choi
1ed8158eb0
fix(examples/lit/basic): show the error message instead of the stringified error ( #12186 )
2026-10-20 12:19:31 +09:00
Wonsuk Choi
8aea733e19
refactor(examples/lit/pagination): infer the controller types instead of passing generics that repeat the field types ( #12185 )
2026-10-20 12:19:17 +09:00
Wonsuk Choi
45e8a5eef3
refactor(examples/lit/basic): infer the controller types from the query and mutation functions instead of passing generics ( #12184 )
2026-10-20 12:19:03 +09:00
Wonsuk Choi
4ea78d6bb2
docs(angular/overview): guard the error with 'isError()', rename the 'Response' interface to 'Repo', and remove the unused 'CommonModule' import ( #12183 )
2026-10-20 12:04:29 +09:00
Wonsuk Choi
86a9c88b38
docs(angular/guides/mutation-options): fix the duplicated 'query-options' id and inject the 'QueryClient' used in the example ( #12182 )
2026-10-20 12:04:14 +09:00
Wonsuk Choi
c223661efb
docs(angular/guides/testing): use 'provideHttpClientTesting' instead of the deprecated 'HttpClientTestingModule' and add 'initialPageParam' to the infinite query example ( #12181 )
2026-10-20 12:01:12 +09:00
Wonsuk Choi
4a18a7016e
docs(angular/guides/infinite-queries): add the required 'initialPageParam' to the bi-directional example ( #12180 )
2026-10-20 12:00:44 +09:00
Wonsuk Choi
ef39130852
docs(angular/guides/query-cancellation): pass filters to 'cancelQueries' and fix the imports of the 'HttpClient' example ( #12179 )
2026-10-20 12:00:25 +09:00
Wonsuk Choi
13d1f1c01f
docs(angular/quick-start): provide 'HttpClient' in the NgModule example ( #12178 )
2026-10-20 12:00:10 +09:00
Wonsuk Choi
55fa9595ed
refactor(examples/angular): type the mock interceptor events and bodies as 'unknown' instead of 'any' ( #12177 )
2026-10-20 11:52:39 +09:00