Skip to content

Commit a9727fe

Browse files
committed
chore(nextjs): Add snapshop testing for public exports
1 parent 517708c commit a9727fe

11 files changed

Lines changed: 2831 additions & 0 deletions

File tree

packages/nextjs/src/api/__tests__/__snapshots__/exports.test.ts.snap

Lines changed: 1543 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import * as publicExports from '../index';
2+
3+
describe('/api public exports', () => {
4+
it('should not include a breaking change', () => {
5+
expect(publicExports).toMatchSnapshot();
6+
});
7+
});
Lines changed: 388 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,388 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`/app-beta public exports should not include a breaking change 1`] = `
4+
Object {
5+
"ClerkProvider": [Function],
6+
"CreateOrganization": [Function],
7+
"OrganizationProfile": [Function],
8+
"OrganizationSwitcher": [Function],
9+
"SignIn": [Function],
10+
"SignUp": [Function],
11+
"SignedIn": [Function],
12+
"SignedOut": [Function],
13+
"UserButton": [Function],
14+
"UserProfile": [Function],
15+
"auth": [Function],
16+
"clerkClient": Object {
17+
"allowlistIdentifiers": AllowlistIdentifierAPI {
18+
"APIClient": ClerkBackendAPI {
19+
"_allowlistIdentifierAPI": [Circular],
20+
"_clientAPI": ClientAPI {
21+
"APIClient": [Circular],
22+
},
23+
"_emailAPI": EmailAPI {
24+
"APIClient": [Circular],
25+
},
26+
"_invitationAPI": InvitationAPI {
27+
"APIClient": [Circular],
28+
},
29+
"_organizationAPI": OrganizationAPI {
30+
"APIClient": [Circular],
31+
},
32+
"_sessionAPI": SessionAPI {
33+
"APIClient": [Circular],
34+
"getSession": [Function],
35+
"getSessionList": [Function],
36+
"getToken": [Function],
37+
"revokeSession": [Function],
38+
"verifySession": [Function],
39+
},
40+
"_smsMessageAPI": SMSMessageAPI {
41+
"APIClient": [Circular],
42+
},
43+
"_userAPI": UserAPI {
44+
"APIClient": [Circular],
45+
},
46+
"apiClient": Object {
47+
"request": [Function],
48+
},
49+
"apiKey": "TEST_API_KEY",
50+
"apiUrl": "https://api.clerk.dev",
51+
"apiVersion": "v1",
52+
"options": Object {
53+
"apiClient": Object {
54+
"request": [Function],
55+
},
56+
"apiKey": "TEST_API_KEY",
57+
"libName": "@clerk/edge",
58+
"libVersion": "1.12.22",
59+
},
60+
"userAgent": "@clerk/edge@1.12.22",
61+
},
62+
},
63+
"clients": ClientAPI {
64+
"APIClient": ClerkBackendAPI {
65+
"_allowlistIdentifierAPI": AllowlistIdentifierAPI {
66+
"APIClient": [Circular],
67+
},
68+
"_clientAPI": [Circular],
69+
"_emailAPI": EmailAPI {
70+
"APIClient": [Circular],
71+
},
72+
"_invitationAPI": InvitationAPI {
73+
"APIClient": [Circular],
74+
},
75+
"_organizationAPI": OrganizationAPI {
76+
"APIClient": [Circular],
77+
},
78+
"_sessionAPI": SessionAPI {
79+
"APIClient": [Circular],
80+
"getSession": [Function],
81+
"getSessionList": [Function],
82+
"getToken": [Function],
83+
"revokeSession": [Function],
84+
"verifySession": [Function],
85+
},
86+
"_smsMessageAPI": SMSMessageAPI {
87+
"APIClient": [Circular],
88+
},
89+
"_userAPI": UserAPI {
90+
"APIClient": [Circular],
91+
},
92+
"apiClient": Object {
93+
"request": [Function],
94+
},
95+
"apiKey": "TEST_API_KEY",
96+
"apiUrl": "https://api.clerk.dev",
97+
"apiVersion": "v1",
98+
"options": Object {
99+
"apiClient": Object {
100+
"request": [Function],
101+
},
102+
"apiKey": "TEST_API_KEY",
103+
"libName": "@clerk/edge",
104+
"libVersion": "1.12.22",
105+
},
106+
"userAgent": "@clerk/edge@1.12.22",
107+
},
108+
},
109+
"emails": EmailAPI {
110+
"APIClient": ClerkBackendAPI {
111+
"_allowlistIdentifierAPI": AllowlistIdentifierAPI {
112+
"APIClient": [Circular],
113+
},
114+
"_clientAPI": ClientAPI {
115+
"APIClient": [Circular],
116+
},
117+
"_emailAPI": [Circular],
118+
"_invitationAPI": InvitationAPI {
119+
"APIClient": [Circular],
120+
},
121+
"_organizationAPI": OrganizationAPI {
122+
"APIClient": [Circular],
123+
},
124+
"_sessionAPI": SessionAPI {
125+
"APIClient": [Circular],
126+
"getSession": [Function],
127+
"getSessionList": [Function],
128+
"getToken": [Function],
129+
"revokeSession": [Function],
130+
"verifySession": [Function],
131+
},
132+
"_smsMessageAPI": SMSMessageAPI {
133+
"APIClient": [Circular],
134+
},
135+
"_userAPI": UserAPI {
136+
"APIClient": [Circular],
137+
},
138+
"apiClient": Object {
139+
"request": [Function],
140+
},
141+
"apiKey": "TEST_API_KEY",
142+
"apiUrl": "https://api.clerk.dev",
143+
"apiVersion": "v1",
144+
"options": Object {
145+
"apiClient": Object {
146+
"request": [Function],
147+
},
148+
"apiKey": "TEST_API_KEY",
149+
"libName": "@clerk/edge",
150+
"libVersion": "1.12.22",
151+
},
152+
"userAgent": "@clerk/edge@1.12.22",
153+
},
154+
},
155+
"invitations": InvitationAPI {
156+
"APIClient": ClerkBackendAPI {
157+
"_allowlistIdentifierAPI": AllowlistIdentifierAPI {
158+
"APIClient": [Circular],
159+
},
160+
"_clientAPI": ClientAPI {
161+
"APIClient": [Circular],
162+
},
163+
"_emailAPI": EmailAPI {
164+
"APIClient": [Circular],
165+
},
166+
"_invitationAPI": [Circular],
167+
"_organizationAPI": OrganizationAPI {
168+
"APIClient": [Circular],
169+
},
170+
"_sessionAPI": SessionAPI {
171+
"APIClient": [Circular],
172+
"getSession": [Function],
173+
"getSessionList": [Function],
174+
"getToken": [Function],
175+
"revokeSession": [Function],
176+
"verifySession": [Function],
177+
},
178+
"_smsMessageAPI": SMSMessageAPI {
179+
"APIClient": [Circular],
180+
},
181+
"_userAPI": UserAPI {
182+
"APIClient": [Circular],
183+
},
184+
"apiClient": Object {
185+
"request": [Function],
186+
},
187+
"apiKey": "TEST_API_KEY",
188+
"apiUrl": "https://api.clerk.dev",
189+
"apiVersion": "v1",
190+
"options": Object {
191+
"apiClient": Object {
192+
"request": [Function],
193+
},
194+
"apiKey": "TEST_API_KEY",
195+
"libName": "@clerk/edge",
196+
"libVersion": "1.12.22",
197+
},
198+
"userAgent": "@clerk/edge@1.12.22",
199+
},
200+
},
201+
"organizations": OrganizationAPI {
202+
"APIClient": ClerkBackendAPI {
203+
"_allowlistIdentifierAPI": AllowlistIdentifierAPI {
204+
"APIClient": [Circular],
205+
},
206+
"_clientAPI": ClientAPI {
207+
"APIClient": [Circular],
208+
},
209+
"_emailAPI": EmailAPI {
210+
"APIClient": [Circular],
211+
},
212+
"_invitationAPI": InvitationAPI {
213+
"APIClient": [Circular],
214+
},
215+
"_organizationAPI": [Circular],
216+
"_sessionAPI": SessionAPI {
217+
"APIClient": [Circular],
218+
"getSession": [Function],
219+
"getSessionList": [Function],
220+
"getToken": [Function],
221+
"revokeSession": [Function],
222+
"verifySession": [Function],
223+
},
224+
"_smsMessageAPI": SMSMessageAPI {
225+
"APIClient": [Circular],
226+
},
227+
"_userAPI": UserAPI {
228+
"APIClient": [Circular],
229+
},
230+
"apiClient": Object {
231+
"request": [Function],
232+
},
233+
"apiKey": "TEST_API_KEY",
234+
"apiUrl": "https://api.clerk.dev",
235+
"apiVersion": "v1",
236+
"options": Object {
237+
"apiClient": Object {
238+
"request": [Function],
239+
},
240+
"apiKey": "TEST_API_KEY",
241+
"libName": "@clerk/edge",
242+
"libVersion": "1.12.22",
243+
},
244+
"userAgent": "@clerk/edge@1.12.22",
245+
},
246+
},
247+
"sessions": SessionAPI {
248+
"APIClient": ClerkBackendAPI {
249+
"_allowlistIdentifierAPI": AllowlistIdentifierAPI {
250+
"APIClient": [Circular],
251+
},
252+
"_clientAPI": ClientAPI {
253+
"APIClient": [Circular],
254+
},
255+
"_emailAPI": EmailAPI {
256+
"APIClient": [Circular],
257+
},
258+
"_invitationAPI": InvitationAPI {
259+
"APIClient": [Circular],
260+
},
261+
"_organizationAPI": OrganizationAPI {
262+
"APIClient": [Circular],
263+
},
264+
"_sessionAPI": [Circular],
265+
"_smsMessageAPI": SMSMessageAPI {
266+
"APIClient": [Circular],
267+
},
268+
"_userAPI": UserAPI {
269+
"APIClient": [Circular],
270+
},
271+
"apiClient": Object {
272+
"request": [Function],
273+
},
274+
"apiKey": "TEST_API_KEY",
275+
"apiUrl": "https://api.clerk.dev",
276+
"apiVersion": "v1",
277+
"options": Object {
278+
"apiClient": Object {
279+
"request": [Function],
280+
},
281+
"apiKey": "TEST_API_KEY",
282+
"libName": "@clerk/edge",
283+
"libVersion": "1.12.22",
284+
},
285+
"userAgent": "@clerk/edge@1.12.22",
286+
},
287+
"getSession": [Function],
288+
"getSessionList": [Function],
289+
"getToken": [Function],
290+
"revokeSession": [Function],
291+
"verifySession": [Function],
292+
},
293+
"smsMessages": SMSMessageAPI {
294+
"APIClient": ClerkBackendAPI {
295+
"_allowlistIdentifierAPI": AllowlistIdentifierAPI {
296+
"APIClient": [Circular],
297+
},
298+
"_clientAPI": ClientAPI {
299+
"APIClient": [Circular],
300+
},
301+
"_emailAPI": EmailAPI {
302+
"APIClient": [Circular],
303+
},
304+
"_invitationAPI": InvitationAPI {
305+
"APIClient": [Circular],
306+
},
307+
"_organizationAPI": OrganizationAPI {
308+
"APIClient": [Circular],
309+
},
310+
"_sessionAPI": SessionAPI {
311+
"APIClient": [Circular],
312+
"getSession": [Function],
313+
"getSessionList": [Function],
314+
"getToken": [Function],
315+
"revokeSession": [Function],
316+
"verifySession": [Function],
317+
},
318+
"_smsMessageAPI": [Circular],
319+
"_userAPI": UserAPI {
320+
"APIClient": [Circular],
321+
},
322+
"apiClient": Object {
323+
"request": [Function],
324+
},
325+
"apiKey": "TEST_API_KEY",
326+
"apiUrl": "https://api.clerk.dev",
327+
"apiVersion": "v1",
328+
"options": Object {
329+
"apiClient": Object {
330+
"request": [Function],
331+
},
332+
"apiKey": "TEST_API_KEY",
333+
"libName": "@clerk/edge",
334+
"libVersion": "1.12.22",
335+
},
336+
"userAgent": "@clerk/edge@1.12.22",
337+
},
338+
},
339+
"users": UserAPI {
340+
"APIClient": ClerkBackendAPI {
341+
"_allowlistIdentifierAPI": AllowlistIdentifierAPI {
342+
"APIClient": [Circular],
343+
},
344+
"_clientAPI": ClientAPI {
345+
"APIClient": [Circular],
346+
},
347+
"_emailAPI": EmailAPI {
348+
"APIClient": [Circular],
349+
},
350+
"_invitationAPI": InvitationAPI {
351+
"APIClient": [Circular],
352+
},
353+
"_organizationAPI": OrganizationAPI {
354+
"APIClient": [Circular],
355+
},
356+
"_sessionAPI": SessionAPI {
357+
"APIClient": [Circular],
358+
"getSession": [Function],
359+
"getSessionList": [Function],
360+
"getToken": [Function],
361+
"revokeSession": [Function],
362+
"verifySession": [Function],
363+
},
364+
"_smsMessageAPI": SMSMessageAPI {
365+
"APIClient": [Circular],
366+
},
367+
"_userAPI": [Circular],
368+
"apiClient": Object {
369+
"request": [Function],
370+
},
371+
"apiKey": "TEST_API_KEY",
372+
"apiUrl": "https://api.clerk.dev",
373+
"apiVersion": "v1",
374+
"options": Object {
375+
"apiClient": Object {
376+
"request": [Function],
377+
},
378+
"apiKey": "TEST_API_KEY",
379+
"libName": "@clerk/edge",
380+
"libVersion": "1.12.22",
381+
},
382+
"userAgent": "@clerk/edge@1.12.22",
383+
},
384+
},
385+
},
386+
"currentUser": [Function],
387+
}
388+
`;

0 commit comments

Comments
 (0)