@trackunit/react-core-contexts-test 0.1.76 → 0.1.77
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 +22 -0
- package/index2.js +22 -0
- package/package.json +1 -1
- package/src/TrackunitProvidersMockBuilder.d.ts +22 -0
package/index2.cjs
CHANGED
|
@@ -44064,6 +44064,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44064
44064
|
* Use this Analytics Context.
|
|
44065
44065
|
* Defaults to mockAnalyticsContext.
|
|
44066
44066
|
*
|
|
44067
|
+
* This context is used by the useAnalytics hook from lib "@trackunit/react-core-hooks"
|
|
44068
|
+
*
|
|
44067
44069
|
* @see mockAnalyticsContext
|
|
44068
44070
|
* @example
|
|
44069
44071
|
* ...
|
|
@@ -44091,6 +44093,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44091
44093
|
* Use this Environment Context.
|
|
44092
44094
|
* Defaults to mockEnvironmentContext.
|
|
44093
44095
|
*
|
|
44096
|
+
* This context is used by the useEnvironment hook from lib "@trackunit/react-core-hooks"
|
|
44097
|
+
*
|
|
44094
44098
|
* @see mockEnvironmentContext
|
|
44095
44099
|
* @example
|
|
44096
44100
|
* ...
|
|
@@ -44117,6 +44121,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44117
44121
|
* Use this to pass in a differerent current user.
|
|
44118
44122
|
* Defaults to mockCurrentUserContext.
|
|
44119
44123
|
*
|
|
44124
|
+
* This context is used by the useCurrentUser hook from lib "@trackunit/react-core-hooks"
|
|
44125
|
+
*
|
|
44120
44126
|
* @see mockCurrentUserContext
|
|
44121
44127
|
* @example
|
|
44122
44128
|
* ...
|
|
@@ -44142,6 +44148,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44142
44148
|
* Use this to pass in a differerent current user subscription.
|
|
44143
44149
|
* Defaults to mockUserSubscriptionContext.
|
|
44144
44150
|
*
|
|
44151
|
+
* This context is used by the useUserSubscription hook from lib "@trackunit/react-core-hooks"
|
|
44152
|
+
*
|
|
44145
44153
|
* @see mockUserSubscriptionContext
|
|
44146
44154
|
* @example
|
|
44147
44155
|
* ...
|
|
@@ -44175,6 +44183,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44175
44183
|
* Set global asset sorting context.
|
|
44176
44184
|
* Defaults to mockAssetSortingContext.
|
|
44177
44185
|
*
|
|
44186
|
+
* This context is used by the useAssetSorting hook from lib "@trackunit/react-core-hooks"
|
|
44187
|
+
*
|
|
44178
44188
|
* @see mockAssetSortingContext
|
|
44179
44189
|
* @example
|
|
44180
44190
|
* ...
|
|
@@ -44201,6 +44211,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44201
44211
|
* Set OEM Branding context.
|
|
44202
44212
|
* Defaults to mockOemBrandingContext.
|
|
44203
44213
|
*
|
|
44214
|
+
* This context is used by the useAssetSorting hook from lib "@trackunit/react-core-hooks"
|
|
44215
|
+
*
|
|
44204
44216
|
* @see mockOemBrandingContext
|
|
44205
44217
|
* @example
|
|
44206
44218
|
* ...
|
|
@@ -44226,6 +44238,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44226
44238
|
* Use this ToastContext with the given mocks.
|
|
44227
44239
|
* Defaults to mockToastContext.
|
|
44228
44240
|
*
|
|
44241
|
+
* This context is used by the useToast hook from lib "@trackunit/react-core-hooks"
|
|
44242
|
+
*
|
|
44229
44243
|
* @see mockToastContext
|
|
44230
44244
|
* @example
|
|
44231
44245
|
* ...
|
|
@@ -44251,6 +44265,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44251
44265
|
* Use this global selection.
|
|
44252
44266
|
* Defaults to null.
|
|
44253
44267
|
*
|
|
44268
|
+
* This context is used by the useGlobalSelection hook from lib "@trackunit/react-core-hooks"
|
|
44269
|
+
*
|
|
44254
44270
|
* @example
|
|
44255
44271
|
* ...
|
|
44256
44272
|
* it("should allow render", async () => {
|
|
@@ -44275,6 +44291,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44275
44291
|
/**
|
|
44276
44292
|
* Use this token.
|
|
44277
44293
|
*
|
|
44294
|
+
* This context is used by the useToken hook from lib "@trackunit/react-core-hooks"
|
|
44295
|
+
*
|
|
44278
44296
|
* @example
|
|
44279
44297
|
* ...
|
|
44280
44298
|
* it("should allow render", async () => {
|
|
@@ -44299,6 +44317,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44299
44317
|
/**
|
|
44300
44318
|
* Use this Router Props with the given mocks.
|
|
44301
44319
|
*
|
|
44320
|
+
* This is used to provide a MemoryRouter from lib "react-router-dom"
|
|
44321
|
+
*
|
|
44302
44322
|
* @example
|
|
44303
44323
|
* ...
|
|
44304
44324
|
* it("should allow render", async () => {
|
|
@@ -44323,6 +44343,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44323
44343
|
/**
|
|
44324
44344
|
* Use this Manager Apollo Context Provider with the given mocks.
|
|
44325
44345
|
*
|
|
44346
|
+
* This context is used by the useQuery and useLazyQuery hook from lib "@apollo/client"
|
|
44347
|
+
*
|
|
44326
44348
|
* @see https://www.apollographql.com/docs/react/development-testing/testing
|
|
44327
44349
|
* @example
|
|
44328
44350
|
* ...
|
package/index2.js
CHANGED
|
@@ -44036,6 +44036,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44036
44036
|
* Use this Analytics Context.
|
|
44037
44037
|
* Defaults to mockAnalyticsContext.
|
|
44038
44038
|
*
|
|
44039
|
+
* This context is used by the useAnalytics hook from lib "@trackunit/react-core-hooks"
|
|
44040
|
+
*
|
|
44039
44041
|
* @see mockAnalyticsContext
|
|
44040
44042
|
* @example
|
|
44041
44043
|
* ...
|
|
@@ -44063,6 +44065,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44063
44065
|
* Use this Environment Context.
|
|
44064
44066
|
* Defaults to mockEnvironmentContext.
|
|
44065
44067
|
*
|
|
44068
|
+
* This context is used by the useEnvironment hook from lib "@trackunit/react-core-hooks"
|
|
44069
|
+
*
|
|
44066
44070
|
* @see mockEnvironmentContext
|
|
44067
44071
|
* @example
|
|
44068
44072
|
* ...
|
|
@@ -44089,6 +44093,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44089
44093
|
* Use this to pass in a differerent current user.
|
|
44090
44094
|
* Defaults to mockCurrentUserContext.
|
|
44091
44095
|
*
|
|
44096
|
+
* This context is used by the useCurrentUser hook from lib "@trackunit/react-core-hooks"
|
|
44097
|
+
*
|
|
44092
44098
|
* @see mockCurrentUserContext
|
|
44093
44099
|
* @example
|
|
44094
44100
|
* ...
|
|
@@ -44114,6 +44120,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44114
44120
|
* Use this to pass in a differerent current user subscription.
|
|
44115
44121
|
* Defaults to mockUserSubscriptionContext.
|
|
44116
44122
|
*
|
|
44123
|
+
* This context is used by the useUserSubscription hook from lib "@trackunit/react-core-hooks"
|
|
44124
|
+
*
|
|
44117
44125
|
* @see mockUserSubscriptionContext
|
|
44118
44126
|
* @example
|
|
44119
44127
|
* ...
|
|
@@ -44147,6 +44155,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44147
44155
|
* Set global asset sorting context.
|
|
44148
44156
|
* Defaults to mockAssetSortingContext.
|
|
44149
44157
|
*
|
|
44158
|
+
* This context is used by the useAssetSorting hook from lib "@trackunit/react-core-hooks"
|
|
44159
|
+
*
|
|
44150
44160
|
* @see mockAssetSortingContext
|
|
44151
44161
|
* @example
|
|
44152
44162
|
* ...
|
|
@@ -44173,6 +44183,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44173
44183
|
* Set OEM Branding context.
|
|
44174
44184
|
* Defaults to mockOemBrandingContext.
|
|
44175
44185
|
*
|
|
44186
|
+
* This context is used by the useAssetSorting hook from lib "@trackunit/react-core-hooks"
|
|
44187
|
+
*
|
|
44176
44188
|
* @see mockOemBrandingContext
|
|
44177
44189
|
* @example
|
|
44178
44190
|
* ...
|
|
@@ -44198,6 +44210,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44198
44210
|
* Use this ToastContext with the given mocks.
|
|
44199
44211
|
* Defaults to mockToastContext.
|
|
44200
44212
|
*
|
|
44213
|
+
* This context is used by the useToast hook from lib "@trackunit/react-core-hooks"
|
|
44214
|
+
*
|
|
44201
44215
|
* @see mockToastContext
|
|
44202
44216
|
* @example
|
|
44203
44217
|
* ...
|
|
@@ -44223,6 +44237,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44223
44237
|
* Use this global selection.
|
|
44224
44238
|
* Defaults to null.
|
|
44225
44239
|
*
|
|
44240
|
+
* This context is used by the useGlobalSelection hook from lib "@trackunit/react-core-hooks"
|
|
44241
|
+
*
|
|
44226
44242
|
* @example
|
|
44227
44243
|
* ...
|
|
44228
44244
|
* it("should allow render", async () => {
|
|
@@ -44247,6 +44263,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44247
44263
|
/**
|
|
44248
44264
|
* Use this token.
|
|
44249
44265
|
*
|
|
44266
|
+
* This context is used by the useToken hook from lib "@trackunit/react-core-hooks"
|
|
44267
|
+
*
|
|
44250
44268
|
* @example
|
|
44251
44269
|
* ...
|
|
44252
44270
|
* it("should allow render", async () => {
|
|
@@ -44271,6 +44289,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44271
44289
|
/**
|
|
44272
44290
|
* Use this Router Props with the given mocks.
|
|
44273
44291
|
*
|
|
44292
|
+
* This is used to provide a MemoryRouter from lib "react-router-dom"
|
|
44293
|
+
*
|
|
44274
44294
|
* @example
|
|
44275
44295
|
* ...
|
|
44276
44296
|
* it("should allow render", async () => {
|
|
@@ -44295,6 +44315,8 @@ class TrackunitProvidersMockBuilder {
|
|
|
44295
44315
|
/**
|
|
44296
44316
|
* Use this Manager Apollo Context Provider with the given mocks.
|
|
44297
44317
|
*
|
|
44318
|
+
* This context is used by the useQuery and useLazyQuery hook from lib "@apollo/client"
|
|
44319
|
+
*
|
|
44298
44320
|
* @see https://www.apollographql.com/docs/react/development-testing/testing
|
|
44299
44321
|
* @example
|
|
44300
44322
|
* ...
|
package/package.json
CHANGED
|
@@ -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
|
* ...
|