@trackunit/react-core-contexts-test 1.7.34 → 1.7.35
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.
package/index.cjs.js
CHANGED
|
@@ -317,7 +317,7 @@ const RootRouteDebugger = () => {
|
|
|
317
317
|
*
|
|
318
318
|
* @param addTestRootContainer boolean to add test root container
|
|
319
319
|
* @param children children to be wrapped
|
|
320
|
-
* @returns
|
|
320
|
+
* @returns {ReactNode} children component wrapped in a test root container
|
|
321
321
|
*/
|
|
322
322
|
const TestRenderChildren = ({ addTestRootContainer, children }) => {
|
|
323
323
|
return addTestRootContainer ? (jsxRuntime.jsx("div", { className: "inline-block h-[1000px] w-[1024px] scale-[.99]", "data-testid": "testRoot", style: {
|
|
@@ -1004,7 +1004,7 @@ class TrackunitProvidersMockBuilder {
|
|
|
1004
1004
|
* @param callback - The hook to test
|
|
1005
1005
|
* @param parentElement - Optional parent element wrapper
|
|
1006
1006
|
* @throws Error if the hook result is undefined or null (to ensure meaningful stability testing)
|
|
1007
|
-
* @returns true if the result is referentially stable after rerender (using Object.is()), false otherwise
|
|
1007
|
+
* @returns {boolean} true if the result is referentially stable after rerender (using Object.is()), false otherwise
|
|
1008
1008
|
*/
|
|
1009
1009
|
async verifyHookStability(callback, parentElement) {
|
|
1010
1010
|
const { result, rerender } = await this.renderHook(callback, parentElement);
|
package/index.esm.js
CHANGED
|
@@ -315,7 +315,7 @@ const RootRouteDebugger = () => {
|
|
|
315
315
|
*
|
|
316
316
|
* @param addTestRootContainer boolean to add test root container
|
|
317
317
|
* @param children children to be wrapped
|
|
318
|
-
* @returns
|
|
318
|
+
* @returns {ReactNode} children component wrapped in a test root container
|
|
319
319
|
*/
|
|
320
320
|
const TestRenderChildren = ({ addTestRootContainer, children }) => {
|
|
321
321
|
return addTestRootContainer ? (jsx("div", { className: "inline-block h-[1000px] w-[1024px] scale-[.99]", "data-testid": "testRoot", style: {
|
|
@@ -1002,7 +1002,7 @@ class TrackunitProvidersMockBuilder {
|
|
|
1002
1002
|
* @param callback - The hook to test
|
|
1003
1003
|
* @param parentElement - Optional parent element wrapper
|
|
1004
1004
|
* @throws Error if the hook result is undefined or null (to ensure meaningful stability testing)
|
|
1005
|
-
* @returns true if the result is referentially stable after rerender (using Object.is()), false otherwise
|
|
1005
|
+
* @returns {boolean} true if the result is referentially stable after rerender (using Object.is()), false otherwise
|
|
1006
1006
|
*/
|
|
1007
1007
|
async verifyHookStability(callback, parentElement) {
|
|
1008
1008
|
const { result, rerender } = await this.renderHook(callback, parentElement);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts-test",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.35",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"@testing-library/react": "16.2.0",
|
|
12
12
|
"react": "19.0.0",
|
|
13
13
|
"graphql": "^16.10.0",
|
|
14
|
-
"@trackunit/react-core-contexts-api": "1.8.
|
|
15
|
-
"@trackunit/react-core-hooks": "1.7.
|
|
16
|
-
"@trackunit/shared-utils": "1.9.
|
|
17
|
-
"@trackunit/react-test-setup": "1.4.
|
|
14
|
+
"@trackunit/react-core-contexts-api": "1.8.32",
|
|
15
|
+
"@trackunit/react-core-hooks": "1.7.35",
|
|
16
|
+
"@trackunit/shared-utils": "1.9.30",
|
|
17
|
+
"@trackunit/react-test-setup": "1.4.30",
|
|
18
18
|
"@tanstack/react-router": "1.114.29",
|
|
19
19
|
"@tanstack/router-core": "1.114.29",
|
|
20
20
|
"es-toolkit": "^1.39.10"
|
|
@@ -415,7 +415,7 @@ export declare class TrackunitProvidersMockBuilder<T extends AnyRoute> {
|
|
|
415
415
|
* @param callback - The hook to test
|
|
416
416
|
* @param parentElement - Optional parent element wrapper
|
|
417
417
|
* @throws Error if the hook result is undefined or null (to ensure meaningful stability testing)
|
|
418
|
-
* @returns true if the result is referentially stable after rerender (using Object.is()), false otherwise
|
|
418
|
+
* @returns {boolean} true if the result is referentially stable after rerender (using Object.is()), false otherwise
|
|
419
419
|
*/
|
|
420
420
|
verifyHookStability<TProps, TResult>(callback: (props: TProps) => TResult, parentElement?: (children: ReactNode) => ReactElement): Promise<boolean>;
|
|
421
421
|
/**
|
|
@@ -26,7 +26,7 @@ export interface TestRenderChildrenProps {
|
|
|
26
26
|
*
|
|
27
27
|
* @param addTestRootContainer boolean to add test root container
|
|
28
28
|
* @param children children to be wrapped
|
|
29
|
-
* @returns
|
|
29
|
+
* @returns {ReactNode} children component wrapped in a test root container
|
|
30
30
|
*/
|
|
31
31
|
export declare const TestRenderChildren: ({ addTestRootContainer, children }: TestRenderChildrenProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export interface RouterContainerProps<T extends AnyRoute = AnyRoute> {
|