@trackunit/react-core-contexts-test 0.1.76 → 0.1.78
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/HookRenderer.cjs +1 -0
- package/HookRenderer.js +1 -0
- package/index.cjs +1 -0
- package/index.js +1 -0
- package/index2.cjs +24 -520
- package/index2.js +23 -519
- package/package.json +3 -3
- package/src/TrackunitProvidersMockBuilder.d.ts +22 -0
|
@@ -28,6 +28,8 @@ export declare class TrackunitProvidersMockBuilder {
|
|
|
28
28
|
* Use this Analytics Context.
|
|
29
29
|
* Defaults to mockAnalyticsContext.
|
|
30
30
|
*
|
|
31
|
+
* This context is used by the useAnalytics hook from lib "@trackunit/react-core-hooks"
|
|
32
|
+
*
|
|
31
33
|
* @see mockAnalyticsContext
|
|
32
34
|
* @example
|
|
33
35
|
* ...
|
|
@@ -51,6 +53,8 @@ export declare class TrackunitProvidersMockBuilder {
|
|
|
51
53
|
* Use this Environment Context.
|
|
52
54
|
* Defaults to mockEnvironmentContext.
|
|
53
55
|
*
|
|
56
|
+
* This context is used by the useEnvironment hook from lib "@trackunit/react-core-hooks"
|
|
57
|
+
*
|
|
54
58
|
* @see mockEnvironmentContext
|
|
55
59
|
* @example
|
|
56
60
|
* ...
|
|
@@ -74,6 +78,8 @@ export declare class TrackunitProvidersMockBuilder {
|
|
|
74
78
|
* Use this to pass in a differerent current user.
|
|
75
79
|
* Defaults to mockCurrentUserContext.
|
|
76
80
|
*
|
|
81
|
+
* This context is used by the useCurrentUser hook from lib "@trackunit/react-core-hooks"
|
|
82
|
+
*
|
|
77
83
|
* @see mockCurrentUserContext
|
|
78
84
|
* @example
|
|
79
85
|
* ...
|
|
@@ -96,6 +102,8 @@ export declare class TrackunitProvidersMockBuilder {
|
|
|
96
102
|
* Use this to pass in a differerent current user subscription.
|
|
97
103
|
* Defaults to mockUserSubscriptionContext.
|
|
98
104
|
*
|
|
105
|
+
* This context is used by the useUserSubscription hook from lib "@trackunit/react-core-hooks"
|
|
106
|
+
*
|
|
99
107
|
* @see mockUserSubscriptionContext
|
|
100
108
|
* @example
|
|
101
109
|
* ...
|
|
@@ -120,6 +128,8 @@ export declare class TrackunitProvidersMockBuilder {
|
|
|
120
128
|
* Set global asset sorting context.
|
|
121
129
|
* Defaults to mockAssetSortingContext.
|
|
122
130
|
*
|
|
131
|
+
* This context is used by the useAssetSorting hook from lib "@trackunit/react-core-hooks"
|
|
132
|
+
*
|
|
123
133
|
* @see mockAssetSortingContext
|
|
124
134
|
* @example
|
|
125
135
|
* ...
|
|
@@ -143,6 +153,8 @@ export declare class TrackunitProvidersMockBuilder {
|
|
|
143
153
|
* Set OEM Branding context.
|
|
144
154
|
* Defaults to mockOemBrandingContext.
|
|
145
155
|
*
|
|
156
|
+
* This context is used by the useAssetSorting hook from lib "@trackunit/react-core-hooks"
|
|
157
|
+
*
|
|
146
158
|
* @see mockOemBrandingContext
|
|
147
159
|
* @example
|
|
148
160
|
* ...
|
|
@@ -165,6 +177,8 @@ export declare class TrackunitProvidersMockBuilder {
|
|
|
165
177
|
* Use this ToastContext with the given mocks.
|
|
166
178
|
* Defaults to mockToastContext.
|
|
167
179
|
*
|
|
180
|
+
* This context is used by the useToast hook from lib "@trackunit/react-core-hooks"
|
|
181
|
+
*
|
|
168
182
|
* @see mockToastContext
|
|
169
183
|
* @example
|
|
170
184
|
* ...
|
|
@@ -187,6 +201,8 @@ export declare class TrackunitProvidersMockBuilder {
|
|
|
187
201
|
* Use this global selection.
|
|
188
202
|
* Defaults to null.
|
|
189
203
|
*
|
|
204
|
+
* This context is used by the useGlobalSelection hook from lib "@trackunit/react-core-hooks"
|
|
205
|
+
*
|
|
190
206
|
* @example
|
|
191
207
|
* ...
|
|
192
208
|
* it("should allow render", async () => {
|
|
@@ -208,6 +224,8 @@ export declare class TrackunitProvidersMockBuilder {
|
|
|
208
224
|
/**
|
|
209
225
|
* Use this token.
|
|
210
226
|
*
|
|
227
|
+
* This context is used by the useToken hook from lib "@trackunit/react-core-hooks"
|
|
228
|
+
*
|
|
211
229
|
* @example
|
|
212
230
|
* ...
|
|
213
231
|
* it("should allow render", async () => {
|
|
@@ -229,6 +247,8 @@ export declare class TrackunitProvidersMockBuilder {
|
|
|
229
247
|
/**
|
|
230
248
|
* Use this Router Props with the given mocks.
|
|
231
249
|
*
|
|
250
|
+
* This is used to provide a MemoryRouter from lib "react-router-dom"
|
|
251
|
+
*
|
|
232
252
|
* @example
|
|
233
253
|
* ...
|
|
234
254
|
* it("should allow render", async () => {
|
|
@@ -250,6 +270,8 @@ export declare class TrackunitProvidersMockBuilder {
|
|
|
250
270
|
/**
|
|
251
271
|
* Use this Manager Apollo Context Provider with the given mocks.
|
|
252
272
|
*
|
|
273
|
+
* This context is used by the useQuery and useLazyQuery hook from lib "@apollo/client"
|
|
274
|
+
*
|
|
253
275
|
* @see https://www.apollographql.com/docs/react/development-testing/testing
|
|
254
276
|
* @example
|
|
255
277
|
* ...
|