@trackunit/react-core-contexts-test 1.22.7-alpha-7afddbbe4cc.0 → 1.22.7
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/index2.cjs.js +9 -2
- package/index2.esm.js +9 -2
- package/package.json +4 -4
package/index2.cjs.js
CHANGED
|
@@ -13574,12 +13574,19 @@ const defaultOptions = {
|
|
|
13574
13574
|
query: {
|
|
13575
13575
|
errorPolicy: "all",
|
|
13576
13576
|
},
|
|
13577
|
+
// Same as `createApolloClient` in `@trackunit/react-core-contexts`, so `useQuery`/`useLazyQuery` specs run under
|
|
13578
|
+
// the error policy production uses.
|
|
13579
|
+
watchQuery: {
|
|
13580
|
+
fetchPolicy: "no-cache",
|
|
13581
|
+
errorPolicy: "all",
|
|
13582
|
+
},
|
|
13577
13583
|
};
|
|
13578
13584
|
/**
|
|
13579
13585
|
* This is a wrapper around the MockedProvider that logs errors to the console.
|
|
13580
13586
|
*/
|
|
13581
13587
|
function ApolloMockedProviderWithError(props) {
|
|
13582
|
-
const isDebugging = typeof globalThis.process !== "undefined" &&
|
|
13588
|
+
const isDebugging = typeof globalThis.process !== "undefined" &&
|
|
13589
|
+
(!!globalThis.process.env.VSCODE_INSPECTOR_OPTIONS || !!globalThis.process.env.DEBUG);
|
|
13583
13590
|
dev.loadDevMessages();
|
|
13584
13591
|
dev.loadErrorMessages();
|
|
13585
13592
|
const { mocks, ...otherProps } = props;
|
|
@@ -13599,7 +13606,7 @@ function ApolloMockedProviderWithError(props) {
|
|
|
13599
13606
|
}
|
|
13600
13607
|
});
|
|
13601
13608
|
const link = client.ApolloLink.from([errorLoggingLink, mockLink]);
|
|
13602
|
-
return
|
|
13609
|
+
return jsxRuntime.jsx(testing.MockedProvider, { ...otherProps, defaultOptions: defaultOptions, link: link });
|
|
13603
13610
|
}
|
|
13604
13611
|
|
|
13605
13612
|
const mockConfirmationDialogContext = {
|
package/index2.esm.js
CHANGED
|
@@ -13552,12 +13552,19 @@ const defaultOptions = {
|
|
|
13552
13552
|
query: {
|
|
13553
13553
|
errorPolicy: "all",
|
|
13554
13554
|
},
|
|
13555
|
+
// Same as `createApolloClient` in `@trackunit/react-core-contexts`, so `useQuery`/`useLazyQuery` specs run under
|
|
13556
|
+
// the error policy production uses.
|
|
13557
|
+
watchQuery: {
|
|
13558
|
+
fetchPolicy: "no-cache",
|
|
13559
|
+
errorPolicy: "all",
|
|
13560
|
+
},
|
|
13555
13561
|
};
|
|
13556
13562
|
/**
|
|
13557
13563
|
* This is a wrapper around the MockedProvider that logs errors to the console.
|
|
13558
13564
|
*/
|
|
13559
13565
|
function ApolloMockedProviderWithError(props) {
|
|
13560
|
-
const isDebugging = typeof globalThis.process !== "undefined" &&
|
|
13566
|
+
const isDebugging = typeof globalThis.process !== "undefined" &&
|
|
13567
|
+
(!!globalThis.process.env.VSCODE_INSPECTOR_OPTIONS || !!globalThis.process.env.DEBUG);
|
|
13561
13568
|
loadDevMessages();
|
|
13562
13569
|
loadErrorMessages();
|
|
13563
13570
|
const { mocks, ...otherProps } = props;
|
|
@@ -13577,7 +13584,7 @@ function ApolloMockedProviderWithError(props) {
|
|
|
13577
13584
|
}
|
|
13578
13585
|
});
|
|
13579
13586
|
const link = ApolloLink.from([errorLoggingLink, mockLink]);
|
|
13580
|
-
return
|
|
13587
|
+
return jsx(MockedProvider, { ...otherProps, defaultOptions: defaultOptions, link: link });
|
|
13581
13588
|
}
|
|
13582
13589
|
|
|
13583
13590
|
const mockConfirmationDialogContext = {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts-test",
|
|
3
|
-
"version": "1.22.7
|
|
3
|
+
"version": "1.22.7",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/shared-utils": "1.19.
|
|
10
|
+
"@trackunit/shared-utils": "1.19.6",
|
|
11
11
|
"@tanstack/router-core": "1.114.29",
|
|
12
|
-
"@trackunit/iris-app-runtime-core-api": "1.21.
|
|
13
|
-
"@trackunit/react-core-contexts-api": "1.22.
|
|
12
|
+
"@trackunit/iris-app-runtime-core-api": "1.21.6",
|
|
13
|
+
"@trackunit/react-core-contexts-api": "1.22.6",
|
|
14
14
|
"es-toolkit": "^1.52.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|