@tanstack/react-query-devtools 4.3.5 → 4.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MatcherFunction } from '@testing-library/dom/types/matches';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ReactQueryDevtools } from '../devtools';
|
|
5
|
+
import { QueryClient, QueryCache } from '@tanstack/react-query';
|
|
6
|
+
export declare function renderWithClient(client: QueryClient, ui: React.ReactElement, devtoolsOptions?: Parameters<typeof ReactQueryDevtools>[number]): ReturnType<typeof render>;
|
|
7
|
+
export declare function sleep(timeout: number): Promise<void>;
|
|
8
|
+
/**
|
|
9
|
+
* This method is useful for matching by text content when the text is splitted
|
|
10
|
+
* across different HTML elements which cannot be searched by normal
|
|
11
|
+
* *ByText methods. It returns a function that can be passed to the testing
|
|
12
|
+
* library's *ByText methods.
|
|
13
|
+
* @param textToMatch The string that needs to be matched
|
|
14
|
+
* @reference https://stackoverflow.com/a/56859650/8252081
|
|
15
|
+
*/
|
|
16
|
+
export declare const getByTextContent: (textToMatch: string) => MatcherFunction;
|
|
17
|
+
interface CreateQueryClientResponse {
|
|
18
|
+
queryClient: QueryClient;
|
|
19
|
+
queryCache: QueryCache;
|
|
20
|
+
}
|
|
21
|
+
export declare const createQueryClient: () => CreateQueryClientResponse;
|
|
22
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/react-query-devtools",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.6",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "tannerlinsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -50,6 +50,6 @@
|
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
52
52
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
53
|
-
"@tanstack/react-query": "4.3.
|
|
53
|
+
"@tanstack/react-query": "4.3.6"
|
|
54
54
|
}
|
|
55
55
|
}
|